pTAL Conversion Guide

Compiler Operation
pTAL Conversion Guide527302-002
19-21
For pTAL and TAL
PUSHGP_OK
pushes the current setting (GP_OK or NOGP_OK) onto the GP_OK directive
stack. Does not change the current setting.
POPGP_OK
pops the top value from the GP_OK directive stack and changes the current setting
to that value.
For an explanation of directive stacks, see the pTAL Reference Manual.
A pTAL program that references data in a shared run-time library (SRL) must specify
NOGP_OK when it declares a data block that belongs to a shared run-time library. This
prevents the pTAL compiler from using GP-relative addressing for references to data in
a shared run-time library.
INVALID_FOR_PTAL
INVALID_FOR_PTAL forces the native compiler to report an error message. Use
INVALID_FOR_PTAL to identify a TAL source file that a native compiler must not
compile.
Default: GP_OK
Placement: Anywhere except inside a data block or inside a procedure declaration
Scope:
GP_OK applies to subsequent code until it is overridden by
NOGP_OK
NOGP_OK applies to subsequent code until it is overridden by
GP_OK
Dependencies: Do not use GP_OK with CALL_SHARED
Default: None
Placement: After IF or IFNOT and before ENDIF
Scope: Applies to code between itself and ENDIF
Dependencies: None
INVALID_FOR_PTAL
VST701.vsd