pTAL Reference Manual (H06.03+)
Compiling and Linking pTAL Programs
HP pTAL Reference Manual—523746-005
16-9
Linking Object Files
Figure 16-3. Creating Loadfiles on TNS/R for TNS/R
The source code can be in one or more files. From each source code file, the compiler generates a single
nonexecutable object code file.
If you compile multiple source files, either compile all of them using the CALL_SHARED directive or all of them
without using the CALL_SHARED directive (you cannot link PIC and non-PIC object files into a single object file).
Input these object code files to the appropriate linker to produce a single loadfile. (See Figure 16-1
on page 16-1.)
pTAL Source Code
pTAL Compiler
TNS/R Nonexecutable
Object Code (non-PIC)
nld
TNS/R Executable
Object Code (non-PIC)
TNS/R Nonexecutable
Object Code (PIC)
ld
TNS/R Executable
Object Code (PIC)
CALL_SHARED
directive
NOCALL_SHARED
directive (default)
VST054.vsd










