HP aC++/HP C A.06.20 Programmer's Guide
number leads it to consider more candidates. The inlining candidates are ordered in
priority order based on the inliner’s heuristics, so this does not affect the most important
candidates.
The +Oinlinebudget option controls the aggressiveness of inlining according to the
value you specify for n where n is an integer in the range 1 - 1000000 that specifies the
level of aggressiveness, as follows:
n= 100 Default compile time budget.
n> 100 Allows the inliner to consider more candidates and increase compile time.
n<100 Considers fewer candidates to reduce compile time for the inliner.
The +Onolimit and +Osize options also affect inlining. Specifying the +Onolimit
option has the same effect as specifying +Oinlinebudget=200. The +Osize option
has the same effect as +Oinlinebudget=1.
NOTE: The +Oinlinebudget option takes precedence over both of these options.
This means that you can override the effect of +Onolimit or +Osize option on inlining
by specifying the +Oinlinebudget option on the same compile line.
Use this option at optimization level 2 or higher.
The default is +Oinlinebudget=100.
+Olit
+Olit=kind
The +Olit option places the data items that do not require load-time or runtime
initialization in a read-only data section. +Olit=all is the default for both HP aC++
and HP C. This represents a change from earlier versions of the HP C compiler, which
defaulted to +Olit=const. Note that if you attempt to modify the constant or literal,
a runtime signal 11 will be generated.
The defined values for kind are:
all
All string literals and all const-qualified variables that do not require load-time
or runtime initialization will be placed in a read-only data section. +Olit=all
replaces the deprecated +ESlit option.
const All string literals appearing in a context where const char * is legal, and
all const-qualified variables that do not require load-time or runtime
initialization will be placed in a read-only data section. +Olit=const is
mapped to +Olit=all with a warning, except in C mode. +Olit=const
replaces the deprecated +ESconstlit option in C.
none
No constants are placed in a read-only data section. +Olit=none replaces
the deprecated +ESnolit option.
Code Optimizing Options 77