HP-UX Linker and Libraries User's Guide
$ size foo.o
0 + 0 + 0 = 0
strip
Do not run strip on files compiled with +I or +P. Doing so results in an object file that is essentially
empty.
Compiler Options
Except as noted below, all cc, CC, and f77 compiler options work as expected when specified
with +I or +P:
DescriptionCompiler Options
This option is incompatible with +I and +P.-g
This option is incompatible with +I, but compatible with +P (as long as the insertion of the
gprof library calls does not affect the control flow graph structure of the procedures.)
-G
This option is incompatible with +I option, but is compatible with +P (as long as the insertion
of the prof code does not affect the control flow graph structure of the procedures.)
-p
You must not use this option together with +I. Doing so results in an object file that is
essentially empty.
-s
This option is incompatible with +I and +P options because assembly code is not generated
from the compiler in these situations. Currently, it is not possible to get assembly code listings
of code generated by +I and +P.
-S
The same restrictions apply to these options that were mentioned for -g above.-y/+y
This option is incompatible with +I and +P. Currently, you cannot get code offset listings
for code generated by +I and +P.
+o
Compatibility with 9.0 PBO
PBO is largely compatible between the 9.0 and 10.0 releases of HP-UX. I-SOM files created under
9.0 are completely acceptable in the 10.0 environment. However, it is advantageous to re-profile
programs under 10.0 in order to achieve improved optimization. Although you can use profile
data in flow.data files created under 9.0, the resulting optimization will not take advantage of
10.0 enhancements. In addition, a warning is generated stating that the profile data is from a
previous release. See the section called Profiling in this chapter for more information. See the
section called Profiling for more information about the warning generated for profile data generated
from a previous release.
Compatibility with 9.0 PBO
PBO is largely compatible between the 9.0 and 10.0 releases of HP-UX. I-SOM files created under
9.0 are completely acceptable in the 10.0 environment. However, it is advantageous to re-profile
programs under 10.0 in order to achieve improved optimization. Although you can use profile
data in flow.data files created under 9.0, the resulting optimization will not take advantage of
10.0 enhancements. In addition, a warning is generated stating that the profile data is from a
previous release. See the section called Profiling in this chapter for more information. See the
section called Profiling for more information about the warning generated for profile data generated
from a previous release.
216 Improving Your Application Performance