3.1416_4, 113_4

Note, however, that constants specified with an exponent—for example, 4.0E0and 2.3D0—are doubled.

Items promoted include constants, scalar variables, arrays, components of derived types, and record fields. This option also promotes intrinsics as well as the results and arguments of user-defined functions to the proper precision. Types specified in ONstatements are also promoted.

The entire program should be compiled with this option, not just selected files.

This option is useful when porting programs that depend on the increased precision of 8 and 16 bytes. If you want to promote only single-precision items, use the +autodbl4option. (REAL(KIND=16)arithmetic is slow.)

The default is +noautodbl.

Table 9 Data type sizes and +autodbl[4]

 

Sizes in bytes of intrinsic types

 

 

 

 

 

 

Integer, logical, and real

Double precision

Complex

 

 

 

 

Default sizes

4

8

8

 

 

 

 

+autodbl

8

16

16

 

 

 

 

+autodbl4

8

8

16

 

 

 

 

+[no]autodbl4 Like +autodbl, +auotdbl4 increases the default size of integer, logical, and real items to 8 bytes, and the default size of complex items to 16 bytes; see Table 2-3. Unlike +autodbl, it does not increase the default size of double precision.

This option does not increase the size of the following:

 

INTEGER(KIND=4)

 

INTEGER(4) J

 

REAL*8 D

 

3.1416_4, 113_4

 

Note, however, that constants specified with an exponent—for example, 4.0E0and 2.3D0—are

 

doubled.

 

Items promoted include constants, scalar variables, arrays, components of derived types, and

 

record fields. This option also promotes intrinsics as well as the results and arguments of user-defined

 

functions to the proper precision. Types specified in ON statements are also promoted.

 

The entire program should be compiled with this option, not just selected files. Use this option when

 

you want to promote only the single-precision items.

 

The default is +noautodbl4.

 

NOTE: The +autodbl4option causes items declared as REAL, INTEGER, and DOUBLE

 

PRECISION all to have the same size. This violates the Fortran Standard.

-b

This option can be specified to invoke ld with -bto create a shared library.

-Boption

The -Boptions are recognized by HP Fortran to specify whether references to global symbols may

 

be resolved to symbols defined in the current translation unit, or whether they must be assumed to

 

be potentially resolved to symbols defined in another load module. The -Boptions are only supported

 

on HP-UX version 11i and later. See “Symbol binding options” (page 37).

-c

-ccompiles the specified source files but does not link them. The compiler produces a relocatable

 

file (.o) for each file in the files list (these may include.f90, .f, .F, .i, .i90and .sfiles). When

 

using -cand -otogether, you may specify only one source file on the command line; the resulting

 

object file is renamed.

Command-line options 23