HP Fortran Programmer Guide HP-UX 11i v1, HP-UX 11i v2, and HP-UX 11i v3 (B3908-90032,December 2012)

Table 5 Options for controlling code generation (continued)
FunctionOption
Generate Position Independent Code (PIC) with short
displacements (+pic=short) or long displacements
+pic={short|long|no}
(+pic=long) for use in shared libraries. The default is
+pic=no.
nl
For information about using this option when creating
shared libraries, see “Compiling with +pic” on page 89.
Prepare [do not prepare] object files for profiling with
prof; see the prof(1) manpage. The default is +noprof.
+[no]prof
If you compile and link separately and specify +prof on
the command line, you must also specify it on the link line.
nl
For information about using this option to profile programs
with prof, see “gprof” on page 143.
Save [do not save] all local variables in all subprograms.
nl
+[no]save
For information about using this option when porting, see
“Uninitialized variables” on page 241.
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 6 Options for controlling the Linker
FunctionOption
Suppress linking; produce object files only.-c
Mark [do not mark] the output file from the linker demand
load. If you compile and link separately and specify
+[no]demand_load
+demand_load on the command line, you must also
specify it on the link line. The default is +nodemand_load.
nl
For information about using this option, see “Creating
demand-loadable executables” on page 93.
Specify how the runtime environment for trapping
floating-point exceptions should be initialized at program
+FPflags
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) manpage for specific
values for flags.
nl
For information using this option, see “Floating-point
exceptions” on page 121.
Enable [disable] floating-point exceptions. Enabling
floating-point exceptions also causes the running program
+[no]fp_exceptions
to issue a procedure traceback for runtime errors. The
default is +nofp_exceptions.
nl
For information using this option, see “Floating-point
exceptions” on page 121.
14 An overview of HP Fortran