HP-UX 11i Release Notes (December 2000)

Programming
Libraries
Chapter 13 257
these libraries include a decreased calling overhead for the shared
library. Also the build process makes use of pragmas introduced in
release 10.20 to decrease the calling overhead in shared libraries.
In addition to the changes to the library builds, changes have been
made to selected header files to allow building applications that have
decreased calling overhead. These changes apply to both 32-bit and
64-bit applications
Two new libraries are added, /usr/lib/libcres.a and
/usr/lib/pa20_64/libcres.a. These archive libraries include the
common string and memory functions along with a improved
performance qsort routine. A few other selected small routines are also
included. The intent of this library is that an application can link this
library archived while linking the application as a whole shared. The use
of this archived library is a supported link mode and will not introduce
the problems normally associated with a shared/archive link.
The 32-bit system libraries now have selected API's built with the
pragmas HP_DEFINED_EXTERNAL, HP_LONG_RETURN and
HP_NO_RELOCATION. When these three pragmas are used in the building
of libc.sl it is referred to as a fastcalled library. The result of this is
that the export stubs for the selected interfaces have been inlined in the
library code. This reduces the call overhead. Applications that have
already been built willbenefit from this without any effort other than the
replacement of this library. The benefit a given application will gain is
very dependent on the applications use of the libc API's that have been
fastcalled.
Along with the changes to the build process for libc.2, the following
header files have been changed:
ctype.h
grp.h
mntent.h
pwd.h
stdio.h
stdlib.h
strings.h
string.h
time.h
These header files now contain the necessary fastcall pragmas to enable
building a fastcalled application. To make use of the pragmas to build
the application, the define _HP_SHLIB_CALLS needs to be defined for the