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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access