HP Pascal/HP-UX Release Notes Version A.10.08

Chapter 1 13
New and Changed Features
Optimization Parameters
Optimization Parameters
Additional general and specific/advanced parameters allow you to enable
or disable certain types of optimization techniques according to their
effect on code size, compilation time, run-time performance, and other
user-visible effects.
In addition to the general parameters that control types of optimizations,
there are specific parameters that control optimizations within those
types. These specific parameters are advanced in that they may require
an analysis of the program to determine if the specific optimization is
appropriate.
The general optimization parameters are described in Table 1-2.
The specific/advanced optimization parameters are described in Table
1-3. The tables list the optimization levels where each parameter can be
used. The optional no disables the particular optimization.
These parameters do not override a specified level of optimization, nor do
they imply a particular level. To use any of these parameters, you must
include the +On option on the command line, where n specifies the level
at which the type of optimization is effective, as described in Table 1-1.
For example, to compile your program with the +Osize parameter at
level 2, you would use the command:
pc +O2 +Osize my_prog.p
If an parameter is mistakenly used with a level for which the
corresponding optimization is not performed, a warning message is
issued.
Table 1-2 describes the general optimization parameters and lists the
levels at which they are permitted.