13.3. Archive Libraries
The use of archive libraries is optional, requiring one of the following options at compile or link time:
cc/f77 -Wl,-a,archive
LDOPTS=“-a archive”
ld -a archive
For IPF applications on HP-UX 11i v1.5 and later, there are very few system libraries supplied by HP in archive form. In particular, the C library, libc, is only provided in shared form. Some frequently accessed routines from libc, such as memcpy(3C), memset(3C), and memcmp(3C), may be linked as archived by the compiler to improve performance. In addition, the math library, libm, is still provided in an archived form as well as shared form. Even on PA-RISC systems, not all system libraries are available in archive form.
Archive libraries have the following advantages ...
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