pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

Figure 17 Producing Hybrid Loadfiles
AXCEL is available on TNS/E, TNS/R, and TNS processors.
OCA is available on TNS/E and TNS/R processors.
Non-PIC hybrid loadfiles run on the TNS/R architecture. PIC hybrid loadfiles run on the TNS/E
architecture.
Creating a Dynamic Linked Library (DLL)
To create a dynamic-link library (DLL) from pTAL source files, compile the pTAL source files by using
the CALL_SHARED directive (in the Guardian environment) or the -call_shared flag (in the
Windows environment), and then use ld or eld to link the pTAL source files through the -shared
option.
The compiler does not automatically export program names. You must specify -export_all or
-export to the linker.
Compiling With Global Data Blocks
When you compile modules of a program separately or link pTAL code with code written in other
languages, the linking process relocates some of your global data.
Topics:
Declaring Global Data (page 362)
Allocating Global Data Blocks (page 365)
Address Assignments (page 365)
Sharing Global Data Blocks (page 365)
Declaring Global Data
You can declare blocked and unblocked global data (variables, LITERALs, and DEFINEs).
Blocked global data declarations are those appearing within BLOCK declarations. BLOCK
declarations let you group global data declarations into named or private blocks. Named blocks
are shareable among all compilation units in a program. The private block is private to the current
362 Compiling and Linking pTAL Programs