pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-47
OPTIMIZE
OPTIMIZE
level
OPTIMIZEFILE
OPTIMIZEFILE sets the optimization level for individual procedures and
subprocedures.
Level Effect
0 Code is not optimized. Provided in case other optimization levels cause
errors or interfere with debugging. Supports symbolic debugging; data is
always in memory.
1 Code is optimized within statements and across statement boundaries. The
resulting code is more efficient than that produced by lower levels of
optimization and does not interfere with debugging.
2 Code is optimized within statements and across statement boundaries, and
the resulting code is more efficient than code produced by lower levels.
Note. If your program compiles successfully at level 0 but runs out of memory at level 1 or
2, either compile your program only at level 0 or split your program into smaller
subprograms and compile those at the same higher level.
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, but OPTIMIZEFILE can override OPTIMIZE in individual
procedures
References: OPTIMIZEFILE
on page 17-47
=
OPTIMIZE
VST665.vsd
level
VST666.vsd
OPTIMIZEFILE
filename