8.8. Shared Libraries

Shared libraries are used by default on HP-UX systems. With the use of shared libraries, the library on the disk is not made a part of the a.out file, and disk space is saved as a result. However, shared libraries may consume more CPU, consume more memory, and require more I/O activity.

With shared libraries, deferred binding is the default. Binding is done upon the first call to a procedure in the library. This means that unresolved symbols may not be detected until exec() time. Shared libraries are compiled as position-independent code (PIC), which results in reduced performance compared with executables linked with archive libraries. PIC code is bigger and uses more instructions to do equivalent work. Also, shared libraries ...

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.