HP Pascal/HP-UX Release Notes Version A.10.08
Chapter 1 19
New and Changed Features
Optimization Parameters
Combining Optimization Options
One use of the optimization parameters is to turn off a specific
optimization that may not be appropriate for your program. For example,
if you want aggressive optimizations applied to your program but do not
want any optimizations that depend upon entry scheduling, you would
combine the +Oaggressive and +Onoentrysched parameters on the
same command line, as follows:
pc +O4 +Oaggressive +Onoentrysched prog.p
The +Oconservative parameter is useful when optimizing programs
that do not conform to the Pascal ANSI standard. Specifying this
parameter disables any optimizations that assume standard-conforming
code. For example, if you are importing a Pascal program and wish to
optimize it at level 3, you could use the following command line:
+O[no]procelim
Levels 0, 1, 2, 3, 4
+Oprocelim removes routines from the executable file that are
not referenced by the application.
Use +Oprocelim to reduce the size of the executable file,
especially when optimizing at levels 3 and 4 when inlining may
have removed calls to some routines.
The default is +Onoprocelim at optimization levels 0 through 3
and +Oprocelim at level 4.
+O[no]regionsched
Levels 2, 3, 4
+Oregionsched applies aggressive scheduling techniques to
move instructions across branches.
Note that it is not recommended that you use +Oregionsched
with the -z command-line option, which is the pc default. If you
use the parameter with -z, it may cause a SIGSEGV error at
run-time.
Use +Oregionsched to improve application run-time speed.
The default is +Onoregionsched.
+O[no]regreassoc
Levels 2, 3, 4
+Onoregreassoc turns off register reassociation.
Use +Onoregreassoc to disable register reassociation if this
optimization hinders the optimized application performance.
The default is +Oregreassoc.
Advanced Option Optimization Performed