pTAL Conversion Guide

Compiler Operation
pTAL Conversion Guide527302-002
19-8
For pTAL and TAL
The directives in Table 19-3 on page 19-8 are different in pTAL and TAL.
IF, IFNOT, and ENDIF
IF or IFNOT identifies the beginning of code that is to be conditionally compiled.
TARGET
3
USEGLOBALS
2
WARN
Table 19-3. Changed Directives
Directive Name How pTAL Differs From TAL
BEGINCOMPILATION
1
See Separate Compilation on page 19-28
IF, IFNOT, and ENDIF
pTAL has a pTAL toggle
OPTIMIZE
pTAL level-2 optimizations can cross statement boundaries,
making object files smaller and faster, but harder to debug
PAGE
pTAL allows longer headings
SAVEGLOBALS
2
pTAL saves global declarations and their initial values in the
same file (see Separate Compilation on page 19-28)
USEGLOBALS
2
pTAL reads saved global declarations and their initial values
from the same file (see Separate Compilation on page 19-28)
WARN
pTAL uses different warning numbers
1. The EpTAL compiler ignores this directive.
2. The EpTAL compiler does not accept this directive.
3. The pTAL and EpTAL compilers treat this directive differently—for details, see the pTAL Reference Manual.
Table 19-2. pTAL Compiler Directives (page 3 of 3)
Unchanged in pTAL Changed in pTAL New in pTAL
1. The EpTAL compiler ignores this directive.
2. The EpTAL compiler does not accept this directive.
3. The pTAL and EpTAL compilers treat this directive differently—for details, see the pTAL Reference Manual.
VST694.vsd
pTAL
target
toggle-name
toggle-number
IF
IFNOT