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 ...

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.