HP C Programmer's Guide (92434-90009)

84 Chapter4
Optimizing HP C Programs
Using Advanced Optimization Options
Using Advanced Optimization Options
Several advanced optimization options can be specified on the same command line. For
example, the following command line specifies aggressive level 3 optimizations with
unrestricted compile time, disables software pipelining, and disables moving conditional
floating-point instructions out of a loop:
cc +O3 +Oaggressive +Onolimit +Onomoveflops +Onopipeline \
sourcefile.c
Specify the level of optimization first (+O1, +O2, +O3, or +04), followed by any
+O[no]
optimization
options.