pTAL Reference Manual (H06.08+)
Compiler Directives
HP pTAL Reference Manual—523746-006
17-22
CALL_SHARED
If the name of a variable is the same as the name of the data block in which the
variable is located, and the block only contains one variable, the compiler allocates the
data block in the small data area if the length of the block is eight or fewer bytes;
otherwise, the compiler allocates the data block in the large data area. (This is the
allocation strategy used by the native HP C compiler.)
The compiler does not allocate memory for LITERALs, DEFINEs, or templates and,
therefore, does not create an implicit global data block for these items.
CALL_SHARED
CALL_SHARED
generates shared code (PIC), the only option for the EpTAL compiler.
NOCALL_SHARED
causes the pTAL compiler to generate nonshared code (non-PIC).
Note.
•
This directive is useful only for the pTAL compiler. The EpTAL compiler ignores it (and
issues a warning).
•
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
References: GP_OK
on page 17-38
CALL_SHARED
NOCALL_SHARED
VST036.vsd










