COBOL Manual for TNS/E Programs (H06.03+)
Compiler Directives
HP COBOL Manual for TNS/E Programs—520347-003
36-17
OPTIMIZE
OPTIMIZE
level
PERFORM-TRACE
Level Effect
0 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 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.
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
Default: The compiler does not provide additional information if run-time error
148 occurs.
Placement: Anywhere
Scope: Applies to the compilation unit
Dependencies: None
OPTIMIZE level
VST297.vsd
PERFORM-TRACE
VST800.vsd










