COBOL Manual for TNS and TNS/R Programs
Compiler Directives
HP COBOL Manual for TNS and TNS/R Programs—522555-006
36-29
OPTIMIZE
OPTIMIZE
level
Level
Effect
COBOL85 Compiler NMCOBOL Compiler
0 Code is not optimized. Provided in
case other optimization levels
cause errors. Supports symbolic
debugging; data is always in
memory.
Code is not optimized. Provided in
case other optimization levels cause
errors. Supports symbolic debugging;
data is always in memory.
1
(default)
Code is optimized within
statements, but not across
statement boundaries. Appropriate
for application programs still being
developed and tested. Supports
symbolic debugging; data is not
always in memory.
Code is optimized within statements
and across statement boundaries. The
resulting code is more efficient than
that produced by lower levels of
optimization. Supports symbolic
debugging; data is not always in
memory.
2 Code is optimized within
statements and across statement
boundaries, and the resulting code
is more efficient than code
produced by lower levels.
Uses level 1 instead.
Default: OPTIMIZE 1
Placement: Outside the boundary of a separately compiled program
Scope: The optimization level active at the beginning of a separately compiled
program determines the level of optimization for that program and any
programs it contains.
Dependencies: None
OPTIMIZE level
VST297.vsd