13.2. Shared Versus Archive Libraries

Choosing between using shared libraries and archive libraries involves a classic memory-versus-CPU-utilization trade-off (Rule #2). Shared libraries, which are the default, are easier to use and consume less disk space. However, archive libraries consume less CPU while consuming more disk space. When deciding whether to use shared or archive libraries, consider their advantages and disadvantages, as described in the next sections.

13.2.1. Shared Libraries

Shared libraries have the following advantages (+) and disadvantages (-):

+ They are linked by default.

+ They use less disk space because they are not included in a.out and are shared among all processes in memory that invoke the same routines.

+ They make ...

Get HP-UX 11i Tuning and Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.