HP Fortran Programmer Guide (766160-001, March 2014)
arc—collect arc counts (synonym to
+Oprofile=collect). This is the default value.
stride—collect stride data.
all—collect all types of profile data. This is a synonym
for +Oprofile=collect:arc,stride
+Oprofile=collect:arc,stride
+Oprofile=collectinstruments the application for
profile-based optimization.
This option is only valid for Itanium®-based applications.
Enable [disable} the promotion of indirect calls to direct
calls. Indirect calls occur with pointers to functions. This
+O[no]promote_indirect_calls
option can be used at optimization levels 3 and 4. The
default is +Onopromote_indirect_calls.
Tells the optimizer whether global variables are modified
[are not modified] through pointers. This optimization
+O[no]ptrs_to_globals[=name1,name2,...,nameN]
can occur at levels 2, 3, and 4. The default is
+Optrs_to_globals.
The named functions are assumed to be infrequently
called. This option overrides any information in a profile
database.
+Orarely_called=function1[,function2...]
The file indicated by filename contains a list of function
names, separated by spaces or newlines. These functions
+Orarely_called:filename
are assumed to be infrequently called. This option
overrides any information in a profile database.
Generate [do not generate] recovery code for control
speculation. The default is +Onorecovery
+O[no]recovery
+Onoregreassocdisables register reassociation. This
option is only effective at optimization level 2 or higher.
Use +Onoregreassocto disable register reassociation
in the rare case that this optimization degrades
performance.
+O[no]regreassoc
+Oregreassocis the default.
NOTE: This option is valid only on the PA-RISC systems.
+Oreportspecifies the contents of the Optimization
Report.
+O[no]report
All objects of size bytes or smaller will be placed in the
short data area, and references to such data will assume
+Oshortdata[=size]
it resides in the short data area. Valid values of n are 0,
or a decimal number between 8 and 4,194,304 (4MB).
If no size is specified, all data is placed in the short data
area. If size is 0, no data will be placed in the short data
area, and all data references will use long offsets. The
default is +Oshortdata=8.
NOTE: Using a value that is too big or without the
optional size, possibly through +Ofast, may give various
linker fixup errors, if there is more than 4Mb of short
data.
NOTE: All object files participating in a link need to
be consistently compiled with respect to +Oshortdata.
Since the +Ofaster and +Ofast options imply
+Oshortdata, other Fortran object files which reference
common blocks should also be explicitly compiled with
+Oshortdata. Alternatively, the +Ofasterand
+Ofastcompilations can be compiled with an additional
+Oshortdata=8appended to the command line.
48 Compiling and linking