Fortran User's Guide

-dbl

Double the default size for REAL, INTEGER, DOUBLE, and COMPLEX.

    SPARC:77 x86:77


    Note -

    This option, and -r8, are now considered obsolete and may be removed in future releases. Use the more general -xtypemap option instead.


-dbl promotes the default byte size for REAL, INTEGER,DOUBLE,and COMPLEX variables declared without an explicit byte size as follows:

Table 3-14 Default Data Sizes and -dbl (Bytes)

Without -dbl option  

With -dbl option 

Data Type 

default 

SPARC 

x86 

  INTEGER

  REAL

  DOUBLE

16 

This option applies to variables, parameters, constants, and functions.

Also, LOGICAL is treated as INTEGER, COMPLEX as two REALs, and DOUBLE COMPLEX as two DOUBLEs.

Compare -dbl with -r8: -dbl and -r8 can be expressed in terms of the more general -xtypemap= option:

In general, if you compile one subprogram with -dbl, then be sure to compile all subprograms of that program with -dbl. This is particularly important with programs communicating through files with unformatted I/O -- if one program is compiled with -dbl, then the other program must similarly be compiled. Be also aware that this option alters the default data size of function names, including calls to library functions, unless the function name is typed explicitly with a data size.