TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-31
DUMPCONS Directive
?DEFINETOG emitter !Specify toggle EMITTER
!Some code here
?IFNOT emitter !Test toggle for off state
PROC kept; !Find it off; compile procedure
BEGIN
!More code here
END;
?ENDIF emitter !End of compiled part
4. In this example, SETTOG turns on toggle ON_TOG. DEFINETOG then specifies
ON_TOG but does not change its setting. IF finds the toggle is on and causes the
source text between IF ON_TOG and ENDIF ON_TOG to be compiled:
?SETTOG on_tog !Turn on toggle ON_TOG
!Lots of code here
?DEFINETOG on_tog !Specify toggle ON_TOG without
! changing its setting
!Some code here
?IF on_tog !Test toggle for on state
PROC kept; !Find it on; compile procedure
BEGIN
!More code here
END;
?ENDIF on_tog !End of compiled part
DUMPCONS Directive
DUMPCONS inserts the contents of the compiler’s constant table into the object code.
Usage Considerations
DUMPCONS can appear any number of times anywhere in the source code. It cannot
appear in the compilation command.
Each time DUMPCONS appears, the compiler immediately inserts the content of the
compiler’s constant table into the object code. (The constant table contains constants
and labels.)
If DUMPCONS does not appear, the compiler normally inserts the content of the
compiler’s constant table into the object code at the end of a procedure. If an
instruction can only reach constants located within 256 words forward or backward,
however, the compiler inserts the constants accordingly.
VST1616.vsd
DUMPCONS