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

ID 767251
Date 9/08/2022
Public

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

Document Table of Contents

Equivalent Compiler Options

Some compiler directives and compiler options have the same effect, as shown in the table below. However, compiler directives can be turned on and off throughout a program, while compiler options remain in effect for the whole compilation unless overridden by a compiler directive.

The following table shows compiler directives and equivalent command-line compiler options:

Compiler Directive

Equivalent Command-Line Compiler Option

DECLARE

-warn declarations (Linux* and macOS)

/warn:declarations (Windows*)

NODECLARE

-warn nodeclarations (Linux and macOS)

/warn:nodeclarations (Windows)

DEFINE name

-Dname (Linux and macOS)

/Dname (Windows)

FIXEDFORMLINESIZE:length

-extend-source [size] (Linux and macOS)

/extend-source[:size] (Windows)

FREEFORM

-free or -nofixed (Linux and macOS)

/free or /nofixed (Windows)

NOFREEFORM

-nofree or -fixed (Linux and macOS)

/nofree or /fixed (Windows)

INTEGER:size

-integer_sizesize (Linux and macOS)

/integer_size:size (Windows)

OBJCOMMENT

/libdir:user (Windows)

OPTIMIZE[: n ]

-On (Linux and macOS)

/On (Windows)

NOOPTIMIZE

-O0 (Linux and macOS)

/Od (Windows)

PACK:alignment

-align recnbytes (Linux and macOS)

/align:recnbytes (Windows)

REAL:size

-real-sizesize (Linux and macOS)

/real-size:size (Windows)

STRICT

-warn stderrors with -stand f18 (Linux and macOS)

/warn:stderrors with /stand:f18 (Windows)

NOSTRICT

-warn nostderrors (Linux and macOS)

/warn:nostderrors (Windows)