DLL Programmer's Guide for TNS/R Systems
DLLs on a TNS/R System
DLL Programmer’s Guide for TNS/R Systems—522203-002
1-6
Compilers
Compilers
The TNS/R compilers translate source input into a linkfile. By default, the compilers 
produce a non-PIC linkfile, but you can use a compile-time option that causes the 
compiler to generate a PIC linkfile, that can become all or part of a PIC program or 
DLL. In addition to object code and data, TNS/R compilers generate the following 
auxiliary information as part of their linkfile output, that is used by the linker:
•
A symbol table, which identifies all the symbols that this linkfile either makes 
available to other code files or needs from other code files. 
•
A relocation table, which points to all the places in the compiled code and data that 
must be relocated by the linker. Each entry that refers to an external symbol 
contains a pointer to the corresponding entry in the external symbol table. 
Linker 
The TNS/R PIC linker is named ld; it combines one or more PIC linkfiles to create a 
PIC loadfile. In doing this, the linker manipulates both code and data, then places all of 
the loadfile’s adjustable references in tables outside the code, to make them available 
Figure 1-3. Simplified Code Generation and Load Processes
Compiler
Loader
Linker
Source
LinkfileLinkfile Linkfile
Loadfile LoadfileLoadfile
Executable load image
{
A program
and libraries
VST013.vsd










