Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

integer-size

Specifies the default KIND for integer and logical variables.

Syntax

Linux:

-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

Alternate Options

integer-size 16

Linux: -i2

Windows: /4I2

integer-size 32

Linux: -i4

Windows: /4I4

integer-size 64

Linux: -i8

Windows: /4I8