C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

SYSTYPE OSSSYSTYPE GUARDIAN
Not setNot setNative c89 and c99 utilities
Not setNot setTNS/E native C and C++ compilers
Usage Guidelines
For the native C and C++ compilers, the OPTFILE pragma can be entered only on the compiler
RUN command line. For OSS, the -Woptfile option pragma can be entered only in the
c89 or the c99 command line.
Each line of the optimizer file can contain only one function name and the optimize level (0,1,
or 2) that you want for that function.
The optimizer file can raise or lower the optimize level for the given functions; the other
functions in the module are compiled at the optimization level specified in the RUN command
line, if any is specified, or at the default level if no level is specified.
The function name must be the internal name used for linking by the linker utility. Therefore,
the mangled name must be used for C++ programs.
OPTIMIZE
The OPTIMIZE pragma controls the level to which the compiler optimizes the object code.
OPTIMIZE level
level:
{ 0 | 1 | 2 }
level
specifies the level to which the compiler optimizes the code it generates. The available
optimization levels are described in Usage Guidelines.
The pragma default settings are:
SYSTYPE OSSSYSTYPE GUARDIAN
OPTIMIZE 1OPTIMIZE 1TNS C compiler
OPTIMIZE 1OPTIMIZE 1G-series TNS c89 utility
OPTIMIZE 1OPTIMIZE 1TNS/R native C and C++ compilers
OPTIMIZE 1OPTIMIZE 1Native c89 utility
OPTIMIZE 1OPTIMIZE 1c99 utility
OPTIMIZE 1OPTIMIZE 1TNS/E native C and C++ compilers
Usage Guidelines
For TNS and native C and C++, the OPTIMIZE pragma can be only entered on the compiler
RUN command line. For OSS, the pragma can be specified with the -Woptimize flag of
the c89 utility or the -WOn flag of the c99 utility.
The OPTIMIZE pragma affects TNS C and C++ programs:
Optimization level 0 disables all optimizations and yields code with relatively poor
performance. It does not reduce compilation time.
Optimization level 1 provides intrastatement optimizations; that is, optimizations within
a single statement but not across statement boundaries. Because it does not affect statement
OPTIMIZE 225