Kenwood HP 9000 Personal Computer User Manual


 
Chapter 8 271
Ways to Improve Performance
Linker Optimizations
NOTE With the HP-UX 10.0 release, you can also invoke linker optimizations at
levels 2 and 3 by using the +Ofastaccess or +Oprocelim option.
See Also:
For a brief description of compiler optimization options see “Selecting an
Optimization Level with PBO”. For a complete description, see your
compiler manuals or online help.
Incompatibilities with other Options
The -O, +Ofastaccess, and +Oprocelim options are incompatible with
these linker options:
-b These options have no effect on position-independent
code, so they are not useful when building shared
libraries with ld -b.
-A Dynamic linking is incompatible with link-time
optimization.
-r Relocatable linking is incompatible with link-time
optimization.
-D Setting the offset of the data space is incompatible with
link-time optimization.
The linker issues a warning when such conflicts occur. If you require any
of these features, do not use the linker optimization options.
Unused Procedure Elimination with
+Oprocelim
Unused or “dead” procedure elimination is the process of removing
unreferenced procedures from the $TEXT$ space of an executable or
shared library to reduce the size of the program or library.
Dead procedure elimination is performed after all symbols have been
resolved prior to any relocation. It works on a per subspace basis. That is,
only entire subspaces are removed and only if all procedures in the
subspace are unreferenced. Typically, if a relocatable link (ld -r) has
not been performed and the code is not written in assembly, every
procedure is in its own subspace. Relocatable links may merge