pTAL Conversion Guide

Compiler Operation
pTAL Conversion Guide527302-002
19-13
For pTAL and TAL
CALL_SHARED
CALL_SHARED determines whether the compiler generates shared code (PIC).
CALL_SHARED
generates shared code (PIC).
NOCALL_SHARED
generates nonshared code (non-PIC).
Table 19-6. Data Block Names for Indirect and Extended Arrays and Structures
Declaration
Without BLOCKGLOBALS With BLOCKGLOBALS
Pointer Data Pointers and Data
INT .a[0:9] #GLOBAL $_GLOBAL A
INT.EXT
a[0:9]
#GLOBAL $_GLOBAL A
STRUCT .a;
BEGIN
INT i;
END
#GLOBAL $_GLOBAL A
STRUCT .EXT
a;
BEGIN
INT i;
END
#GLOBAL $_GLOBAL A
Note. You cannot link PIC and non-PIC object files into a single object file.
Default: pTAL compiler: NOCALL_SHARED
EpTAL compiler: CALL_SHARED
Placement: Anywhere
Scope: Applies to the compilation unit
Dependencies:
If both CALL_SHARED and NOCALL_SHARED appear in the same
compilation unit, the compiler uses the one that appears last
Do not use CALL_SHARED with GP_OK
CALL_SHARED
NOCALL_SHARED
VST036.vsd