pTAL Reference Manual (H06.08+)

Compiler Directives
HP pTAL Reference Manual523746-006
17-38
GP_OK
GP_OK
GP_OK
causes the pTAL compiler to generate code that has GP-relative addressing
(small data).
NOGP_OK
suppresses the generation of code that has GP-relative addressing. (This is the
only option for the EpTAL compiler.)
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 Directive Stacks on page 17-4.
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
Note. The EpTAL compiler ignores these directives.
Default: pTAL compiler: GP_OK
EpTAL compiler: NOGP_OK
Placement: Anywhere except inside a data block or inside a procedure declaration
Scope:
GP_OK applies to subsequent code it 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
References: CALL_SHARED
on page 17-22
GP_OK
NOGP_OK
POPGP_OK
PUSHGP_OK
VST661.vsd