HP Fortran Programmer's Guide (March 2010)
An overview of HP Fortran
Back-end
Chapter 112
The other component of the back end is the code generator (CodeGen), which you can control
by using the command-line options in Table 1-5. These options allow you to specify (among
other things) that the output file include debugging or profiling information or that local
variables be saved in static memory.
-O[optlevel] Optimize program, where optlevel is 0 (no optimization),
1, 2, 3, or 4(the highest level). If optlevel is not specified,
the program is optimized at level 2 (-O2).
+Ooptlevel This option has the same meaning as the -O[optlevel]
option, except that optlevel must be specified. It is provided
for compatibility with makefiles.
+O[no]info Provide [do not provide] feedback information about the
optimization process. This option is most useful at
optimization level 3 and higher. The default is +Onoinfo.
+O[no]optimization Enable [disable] optimization, a predefined string that
indicates a category of optimizations (for example, those
that do not increase code size) or a specific optimization
technology (for example, inlining). See the
HP Fortran Programmer’s Reference, for the different values
for optimization.
Table 1-5 Options for controlling code generation
Option Function
+[no]asm Compile the named source files and leave [do not leave] the
assembly language output in corresponding files whose names are
suffixed with .s. The default is +noasm.
Table 1-4 Options for controlling optimization (Continued)
Option Function