$ 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:

Compiler Options

Description

 

 

-g

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

 

 

-p

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

 

 

-s

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.

 

 

-y/+y

The same restrictions apply to these options that were mentioned for -gabove.

 

 

+o

This option is incompatible with +I and +P. Currently, you cannot get code offset listings

 

for code generated by +I and +P.

 

 

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.0are 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.0enhancements. 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.0are 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.0enhancements. 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