HP Fortran Programmer's Guide (B3908-90031; September 2011)

An overview of HP Fortran
Linker
Chapter 1 15
Linker
The linker (ld) builds an executable program from the object files produced by the back end and the
libraries. An important group of options for controlling the linker specify what libraries the linker should
search and where it should search for them. Other options control the type of information that the linker
should or should not include in its output file, such as symbol table information used by the debugger or
marks identifying the output file as shareable or demand-loadable. Table 1-6 lists and briefly describes
options that control the linker.
NOTE If you use the f90 command to compile and link on separate command lines and compile
with any of the options (except -c) listed in Table 1-6, you must specify the same options
on the link line as well.
Table 1-6 Options for controlling the Linker
Option Function
-c Suppress linking; produce object files only.
+[no]demand_load Mark [do not mark] the output file from the linker demand load. If you
compile and link separately and specify +demand_load on the command
line, you must also specify it on the link line. The default is
+nodemand_load.
For information about using this option, see “Creating demand-loadable
executables” on page 93.
+FPflags Specify how the runtime environment for trapping floating-point
exceptions should be initialized at program startup. If you compile and
link separately and specify +FP on the command line, you must also
specify it on the link line with the identical set of flags. The default is
that all traps are disabled. See the ld(1) man page for specific values for
flags.
For information using this option, see “Floating-point exceptions” on
page 121.