Intel® Fortran Compiler 16.0 User and Reference Guide

integer-size

Specifies the default KIND for integer and logical variables.

Syntax

Linux and OS X:

-integer-size size

Windows:

/integer-size:size

Arguments

size

Is the size for integer and logical variables. Possible values are: 16, 32, or 64.

Default

integer-size 32

Integer and logical variables are 4 bytes long (INTEGER(KIND=4) and LOGICAL(KIND=4)).

Description

This option specifies the default size (in bits) for integer and logical variables.

Option

Description

integer-size 16

Makes default integer and logical declarations, constants, functions, and intrinsics 2 bytes long. INTEGER and LOGICAL declarations are treated as (KIND=2). Integer and logical constants of unspecified KIND are evaluated in INTEGER (KIND=2) and LOGICAL(KIND=2)respectively.

integer-size 32

Makes default integer and logical declarations, constants, functions, and intrinsics 4 bytes long. INTEGER and LOGICAL declarations are treated as (KIND=4). Integer and logical constants of unspecified KIND are evaluated in INTEGER (KIND=4) and LOGICAL(KIND=4)respectively.

integer-size 64

Makes default integer and logical declarations, constants, functions, and intrinsics 8 bytes long. INTEGER and LOGICAL declarations are treated as (KIND=8). Integer and logical constants of unspecified KIND are evaluated in INTEGER (KIND=8) and LOGICAL(KIND=8)respectively.

IDE Equivalent

Visual Studio: Data > Default Integer KIND

Eclipse: None

Xcode: Data > Default Integer KIND

Alternate Options

integer-size 16

Linux and OS X: -i2

Windows: /4I2

integer-size 32

Linux and OS X: -i4

Windows: /4I4

integer-size 64

Linux and OS X: -i8

Windows: /4I8