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

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*)

/warn:declarations (Windows*)

NODECLARE

-warn nodeclarations (Linux)

/warn:nodeclarations (Windows)

DEFINE name

-Dname (Linux)

/Dname (Windows)

FIXEDFORMLINESIZE:length

-extend-source [size] (Linux)

/extend-source[:size] (Windows)

FREEFORM

-free or -nofixed (Linux)

/free or /nofixed (Windows)

NOFREEFORM

-nofree or -fixed (Linux)

/nofree or /fixed (Windows)

INTEGER:size

-integer_sizesize (Linux)

/integer_size:size (Windows)

OBJCOMMENT

/libdir:user (Windows)

OPTIMIZE[: n ]

-On (Linux)

/On (Windows)

NOOPTIMIZE

-O0 (Linux)

/Od (Windows)

PACK:alignment

-align recnbytes (Linux)

/align:recnbytes (Windows)

REAL:size

-real-sizesize (Linux)

/real-size:size (Windows)

STRICT

-warn stderrors with -stand f18 (Linux)

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

NOSTRICT

-warn nostderrors (Linux)

/warn:nostderrors (Windows)