C/C++ Programmer's Guide (G06.25+)

Compiler Pragmas
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
13-70
OLIMIT
OLIMIT
The OLIMIT directive specifies the maximum decimal number of basic blocks of a
routine that the global optimizer is to optimize. When a routine has more basic blocks
than this number, the routine is not optimized and a warning is printed.
value is the number of basic blocks of a routine that are to be optimized. Specify
a value between 0 and 32767.
The pragma default settings are:
Usage Guidelines
This directive applies to TNS/R-targetted compilations only.
On Guardian, the OLIMIT pragma can appear only on the RUN command line for
NMC or NMCPLUS . On OSS, the -Wolimit=[value] option can appear only
on the RUN command line for the c89 utility.
When a routine has more basic blocks than value, the routine is not optimized and
a warning message is issued.
You must also specify one of the following pragmas when using the OLIMIT
directive:
°
On OSS: -Woptimize=2 or -O
°
On Guardian: OPTIMIZE 2
When OLIMIT is not set, an optimized routine can contain no more than 1500
basic blocks. When a routine has more basic blocks than this number, it is not
optimized, but a warning message is not issued.
OLIMIT value
SYSTYPE GUARDIAN SYSTYPE OSS
TNS C compiler N.A. N.A.
G-series TNS c89 utility N.A. N.A.
TNS/R native C and C++ compilers Not set Not set
Native c89 utility Not set Not set
TNS/E native C and C++ compilers Not applicable Not applicable