pTAL Conversion Guide

Compiler Operation
pTAL Conversion Guide527302-002
19-9
For pTAL and TAL
ENDIF identifies the end of code that is to be conditionally compiled.
pTAL
is new in pTAL and identifies the beginning of code that is to be compiled by the
native compiler but not by the TAL compiler:
OPTIMIZE
OPTIMIZE sets the object code’s default optimization level.
level
In pTAL, because level-2 optimizations can cross statement boundaries, object files
are smaller and faster, but harder to debug.
Compiler IF pTAL IFNOT pTAL
pTAL or EpTAL True False
TAL False True
Level
Optimization
TAL pTAL
0None None
1 Within a statement Within a statement
2 Within a statement Within statements and across statement boundaries
VST693.vsd
pTAL
target
toggle-name
toggle-numberENDIF
=
OPTIMIZE
VST665.vsd
level