TAL Reference Manual

Compiler Directives
TAL Reference Manual526371-001
16-68
Usage Considerations
Usage Considerations
RELOCATE can appear in the compilation command or in the source code.
RELOCATE affects only the source code that follows it, however, so it is safest to
specify it at the beginning of the compilation.
The compiler checks for nonrelocatable data only if RELOCATE appears.
Use RELOCATE when the primary global data area (the area below word address
G[256]) is relocatable. If you are compiling the modules of a program separately or
binding TAL code with code written in other languages, the primary global data must be
relocatable.
When you build the target file, Binder issues warnings for references to nonrelocatable
data.
Example of RELOCATE Directive
In this example, because RELOCATE is in effect, any reference to I (a nonrelocatable
global declaration) produces a warning:
?RELOCATE
!Lots of code
INT i = 'G' + 22; !Nonrelocatable global declaration I
!Lots more code
i := 25; !Reference to I
RESETTOG Directive
RESETTOG creates new toggles in the off state and turns off toggles created by
SETTOG. The RESETTOG directive supports named toggles in addition to numeric
toggles.
VST1647.vsd
,
toggle-name
toggle-number
,
toggle-name
toggle-number
( )
RESETTOG