HP Fortran Programmer Guide (766160-001, March 2014)

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
ComplexDouble precisionInteger, logical, and real
884Default sizes
16168+autodbl
1688+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:
+[no]autodbl4
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.
This option can be specified to invoke ld with -bto create a shared library.-b
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
-Boption
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 compiles 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
-c
using -cand -otogether, you may specify only one source file on the command line; the resulting
object file is renamed.
Command-line options 23