Fortran User's Guide

-i4

Set the default integer size to four bytes.

    SPARC:77 x86:77

Set the default size to 4 bytes for integer and logical constants and variables declared without an explicit size. ( INTEGER*n Y still declares Y to be n bytes regardless of the -i4.).

Although 4 bytes is the default size for INTEGER and LOGICAL, this option can be used for overriding settings made by options like -dbl and -r8, which set these defaults to 8:


demo% f77 -dbl -i4 *.f
Command line warning: -i4 overrides integer part of -dbl
...