ld Manual

Introduction to ld
ld Manual529650.001
1-2
Execution Environments
then places all of the loadfile’s adjustable references in tables outside the code to
make them available to rld, the loader. This process, called linking, must be applied
to linkfiles after they have been compiled and before they can be loaded for execution.
ld allows you to link one or more PIC TNS/R native object files to produce a single
PIC loadfile. ld runs in three environments:
Guardian
OSS
Windows NT, Windows 2000, and Windows XP, using either the Cross-Compiler
CDs or the HP Enterprise Toolkit—NonStop Edition (ETK), which is based on
Microsoft Visual Studio .NET
You can run ld in these ways:
Manually, at a command prompt
Automatically, when using these compilers:
This publication explains only how to run ld manually. For information on running ld
automatically, see:
C/C++ Programmer’s Guide
COBOL Manual for TNS and TNS/R Systems
pTAL Reference Manual
Using the Command-Line Cross Compilers on Windows
Execution Environments
ld can run on a TNS/R machine in either the Guardian or OSS environment. It can
also run on Win32 support machines. The object file produced can only be run on
TNS/R systems.
Note. ld has the same capabilities in each environment, but each environment requires a
slightly different syntax.
Environment Compiler T Number
Guardian NMC T9577
NMCPLUS T9225
NMCOBOL T8107
OSS c89 T8164
nmcobol T8107
Windows NT*
Windows 2000*
Windows XP*
All of the above and ptal T9248
* By means of the Cross-Compiler CDs, ETK