C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Introduction to HP C and C++ for NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
1-8
TNS/R Native Linkers (nld and ld Utilities)
TNS/R Native Linkers (nld and ld Utilities)
The nld native linker links one or more TNS/R native object files (files generated by
the native compilers or nld) to produce either an executable (a loadfile) or relinkable
native object file (linkfile). nld can also modify process attributes, such as HIGHPIN, of
executable native object files and remove nonessential information from native object
files. nld cannot process position-independent code (PIC) files.
The ld native linker, introduced at G06.20, performs the same basic functions as nld,
but processes PIC files, the format necessary when using dynamic-link libraries
(DLLs). If you are using DLLs, you must use ld to link your linkfiles.
Unlike Binder, TNS/R native linker cannot replace individual procedures and data
blocks in an object file or build an object file from individual procedures and data
blocks. TNS/R native linker operate on procedures and data blocks, but only in terms
of an entire object file.
TNS/R native linker run in the NonStop environments in addition to ETK on the PC;
only nld is available with TDS. With both linkers, you can specify the target platform
as NonStop. Command syntax and capabilities are nearly identical in each
environment. To display the syntax, enter nld or ld at the command prompt.
For more details, see the:
DLL Programmer’s Guide for TNS/R Systems
ld Manual
nld Manual
noft Manual
rld Manual
Inspect Symbolic Debugger
The Inspect symbolic debugger is an interactive tool that enables you to identify and
correct programming errors in programs.
You can use Inspect to:
Step through code
Set breakpoints
Display source
Display variables
For more details on debugging capabilities, see the Inspect Manual and the G-series
Debug Manual.