Table 6 Options for controlling the Linker (continued)

Option

Function

 

+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” (page 62).

+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) manpage for specific

 

values for flags.

 

nl

 

For information using this option, see “Floating-point

 

exceptions” (page 78).

+[no]fp_exceptions

Enable [disable] floating-point exceptions. Enabling

 

floating-point exceptions also causes the running program

 

to issue a procedure traceback for runtime errors. The

 

default is +nofp_exceptions.

 

nl

 

For information using this option, see “Floating-point

 

exceptions” (page 78).

-Ldirectory

Add directory to the front of the library search path.

 

This option applies only to libraries specified by the -l

 

option (see below). If you compile and link separately and

 

specify -Lon the command line, you must also specify it

 

on the link line.

 

nl

 

For information about using this option, see “Library search

 

rules” (page 54).

-lx

Link the library libx.a or libx.sl to the executable

 

program. If you compile and link separately and specify

 

-lon the command line, you must also specify it on the

 

link line.

 

nl

 

For information about using this option, see “Linking to

 

nondefault libraries” (page 52)and the ld(1) manpage.

-ooutfile

Name the output file outfile instead of the default

 

a.out. If linking is suppressed (-c), this option is used

 

instead to name the object files.

+[no]shared

Cause the output file from the linker to be marked shared

 

[unshared]. If you compile and link separately and specify

 

+shared on the command line, you must also specify it

 

on the link line. The default is +shared. For information

 

about using this option, see “Creating shared executables”

 

(page 62).

+[no]strip

Strip [do not strip] symbol table information from the linker

 

output. For more information, see the ld(1)) and strip(1)

 

manpages. This option is not compatible with -g. If you

 

compile and link separately and specify +strip on the

 

command line, you must also specify it on the link line. The

 

default is +nostrip.

 

nl

 

For information about using this option, see “Stripping

 

debugging information” (page 76).

+[no]ttybuf

Use buffered [unbuffered] output to the terminal. The default

 

is +ttybuf.

+[no]U77

Invoke [do not invoke] support for the libU77 library (BSD

 

3f). If you compile and link separately and specify +U77

 

on the compile line, you must also specify it on the link

 

line. The default is +noU77.

 

nl

16 An overview of HP Fortran

Page 16
Image 16
HP UX Fortran Software manual +FPflags, Ldirectory, Ooutfile