HP aC++/HP C A.06.20 Programmer's Guide
aCC -o sample.exe +Oprofile=use sample.o
When optimizing at level 4, (where code generation is delayed until link time), use the
+Oprofile=use option as follows:
aCC +Oprofile=use +O4 x.o y.o
When +Oprofile=use is used, no recompilation is necessary. The .o file saved from
the instrumentation phase can be used as input.
For more information on profile-based optimization, you can refer to the HP-UX Online
Linker and Libraries User’s Guide.
Pragmas That Control Optimization
Compiler options provide a high-level, global approach to optimization. To give you
more refinement in optimization, HP aC++ provides two pragmas: OPTIMIZE and
OPT_LEVEL.
See “Optimization Pragmas” (page 133) for more information.
Pragmas That Control Optimization 207