SHLIB_CODE [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation
HP Pascal/iX Reference Manual
SHLIB_CODE
SHLIB_CODE is a System_Dependent HP-UX Option.
The compiler option SHLIB_CODE causes the compiler to generate position
independent code (PIC) for use in shared libraries.
The command line options +Z and +z also specify this option.
Syntax
{integer}
$SHLIB_CODE {ON }$
{OFF }
Parameters
integer Must be in the range 0..2.
Value Compiler generates:
0 Position dependent code.
1 Short load sequence PIC.
2 Long load sequence PIC.
ON Compiler generates short load sequence PIC.
OFF Compiler generates position dependent code.
Default OFF (Position dependent code).
Location At front.
Command Line Option +z or +Z
Programs that have been linked to shared libraries (.sl) use less disk
space than those linked to archive libraries (.a). Also, programs linked
to shared libraries get automatic updates when a new version of the
shared library is installed.
When compiling for a shared library use $SHLIB_CODE ON$ or $SHLIB_CODE
1$. However, if the number of external references in the resulting
shared library exceeds a system-dependent limit, use $SHLIB_CODE 2$. The
linker will indicate when the limit has been exceeded.
SHLIB_CODE is valid only when the target operating system is HP-UX (see
"OS" ). The resulting object file will link only HP-UX.
For more information about shared libraries and PIC, refer to Programming
on HP-UX.
MPE/iX 5.0 Documentation