nld and noft Manual
nld Utility
nld and noft Manual—520384-003
2-22
Linking Floating-Point Programs
Unlike libraries, which must be specified only once in a linking operation, you might
need to specify archives more than once in the same linking operation. For example, if
the object program obj calls functions fun1 and fun3, and if archive ar1 contains
functions fun1 and fun2 in separate archives or object files, and archive ar2 contains
function fun3, which calls fun2, then the command:
nld obj.o -l ar1.a -l ar2.a
links obj, ar1 and ar2. nld resolves references to fun1 and fun3, but fun2 is
unresolved.
The following command:
nld obj.o -l ar1.a -l ar2.a -l ar1.a
links obj, ar1 and ar2 completely and nld resolves all references.
Linking Floating-Point Programs
When linking object files using the nld utility, you can specify the floating-point type of
the output object file using the option -set on page 3-13 with the attribute-name
FLOATTYPE. The floating-point type can be any of the following:
•
TANDEM_FLOAT
•
IEEE_FLOAT
•
NEUTRAL_FLOAT
If you do not specify the floating-point type of the output object file, nld derives it from
the types of the input files (see Link-Time Consistency Checking on page 2-23).
When modifying an existing object file, nld sets the type as specified by the option
-change on page 3-4.
Subsections:
•
Link-Time Consistency Checking on page 2-23
•
Run-Time Consistency Checking on page 2-25
•
Linking Mixed-Language Programs on page 2-26
For more information about using IEEE floating-point format:
Topic Document
Building programs using IEEE floating-point
format
Guardian Programmer’s Guide
Operating mode routines
Routines for converting between Tandem
and IEEE floating-point formats
Guardian Procedure Calls Reference Manual
Descriptions of the IEEE_FLOAT and
TANDEM_FLOAT pragmas
C/C++ Programmer’s Guide