Windows* to Linux* Options Cross-reference

This section provides cross-reference table of the IntelŪ Fortran Compiler options used on the Widows* and Linux* operating systems. The options described can be used for compilations targeted to either IA-32- or Itanium-based applications or both. See Conventions Used in the Options Quick Guide Tables.

Note
The table is based on the alphabetical order of compiler options for Linux.

Note
The value in the Default column is used for both Windows and Linux operating systems unless indicated otherwise.

Windows Option

Linux Option

Description

 Default

/QI0f[-]
IA-32 only

-OF_check

IA-32 only

Enables a software patch for Pentium processor 0f erratum.

OFF

/1

-1

Executes any DO loop at least once.

  OFF

/4L{72|80|132}

-72, -80, -132

Specifies 72, 80 or 132 column lines for fixed form source only. The compiler might issue a warning for non-numeric text beyond 72 for the
-72
option.

Windows:
/4L72

Linux:
-72

/u

-A-

Removes all predefined macros. Issues a warning if OpenMP does not work correctly.

OFF

/align[-]

-align[-]

Analyzes and reorders memory layout for variables and arrays. (Same as -Zp{n}.)

ON

/Qansi[-]
IA-32 only

-ansi[-]

Enables (default) or disables assumption of the programs ANSI conformance.

ON

/4{Y|N}a

-auto

Causes all variables to be allocated on the stack, rather than in local static storage. Does not affect variables that appear in an EQUIVALENCE or SAVE statement, or those that are in COMMON. Makes all local variables AUTOMATIC.

Windows:
/4Na

Linux:
OFF

/Qautodouble

-autodouble

Sets the default size of real numbers to 8 bytes; same as -r8.

OFF

/Qauto_scalar

-auto_scalar

Makes scalar local variables AUTOMATIC.

ON

/Qax{i|M|K|W}

IA-32 only

-ax{i|M|K|W}

IA-32 only

Generates code that is optimized for a specific processor, but that will  execute on any IA-32 processor. Compiler generates multiple versions of some routines, and chooses the best version for the host processor at runtime. supporting the extensions indicated by processor-specific codes i (PentiumŪ Pro), M (Pentium with MMX(TM) technology), K (Pentium III), and W (Pentium 4).

OFF

/Qbdprogname

-bdname

Enables the IntelŪ Fortran Compiler binder to generate a list of objects to build a PROGNAME.

OFF

/c

-c

Stops the compilation process after an object file (.obj) has been generated.

OFF

/C
IA-32 only

-C
IA-32 only

Enable extensive runtime error checking. Equivalent to: -CA, -CB, -CS, -CU, -CV or -4Yb runtime diagnostics options.

OFF

/CA
IA-32 only

-CA
IA-32 only

Generates code check at runtime to ensure that referenced pointers and allocatable arrays are not nil. Should be used in conjunction with -d[n].

OFF

/CB
IA-32 only

-CB
IA-32 only

Generates code to check that array subscript and substring references are within declared bounds. Should be used in conjunction with -d[n].

OFF

/CS
IA-32 only

-CS
IA-32 only

Generates code to check the shapes of array arguments to intrinsic procedures. Should be used in conjunction with -d[n].

OFF

/CU
IA-32 only

-CU
IA-32 only

Generates code that causes a runtime error if variables are used without being initialized. Should be used in conjunction with -d[n].

OFF

/CV
IA-32 only

-CV
IA-32 only

On entry to a subprogram, tests the correspondence between the actual arguments passed and the dummy arguments expected. Both calling and called code must be compiled with -CV for the checks to be effective. Should be used in conjunction with
-d[n]
.

OFF

/C90

-C90

Links with an alternative I/O library (libCEPCF90.a) that supports mixed input and output with C on the standard streams.

OFF

/cerrs[-]

-cerrs[-]

Enables/disables errors and warning messages to be printed in a terse format.

Windows: ON
Linux: OFF

/Qclfile

-clfile

Specifies a program unit catalog list file in which to search for referenced modules.

OFF

/cm

-cm

Suppresses all comment messages.

OFF

/Qcommon_args

-common_args

Assumes by reference subprogram arguments may have aliases of one another.

OFF

/Qcpp[n]

-cpp[n]

Same as -fpp.

OFF

/Qd_lines

-DD

Compiles debugging statements indicated by the letter D in column 1 of the source code.

OFF

/Qdx_lines

-DX

Compiles debugging statements indicated by the letters X in column 1 of the source code.

OFF

/Qdy_lines

-DY

Compiles debugging statements indicated by the letters Y in column 1 of the source code.

OFF

/d[n]

IA-32 only

-d[n]

IA-32 only

Sets diagnostics level as follows:
-d0
- displays procname line
-d1
- displays local scalar variables
-d2
- local and common scalars
-d>2
- display first n elements of local and COMMON arrays, and all scalars.

OFF

/Dname[={#|text}]

-Dname={#|text}]

Defines a macro name and associates it with the specified value.

OFF

/Qdoubletemps

-doubletemps

Ensures that all intermediate results of floating-point expressions are maintained in at least double precision.

OFF

/Qdps[-]

-dps, -nodps

Enable (default) or disable DEC* parameter statement recognition.

Windows: ON
Linux: -dps

None

-dryrun

Show driver tool commands but do not execute tools.

OFF

/E

-E

Preprocesses the source files and writes the results to _stdout. If the file name ends with capital F, the option is treated as fpp.

OFF

/4{Y|N}s

-e90, -e95

Enables/disables issuing of errors rather than warnings for features that are non-standard Fortran.

OFF

/EP

-EP

Preprocesses the source files and writes the results to stdout omitting the #line directives.

OFF

/Qextend_source

-extend_
source

Enables extended (132-character) source lines. Same as -132.

OFF

/P

-F

Preprocesses the source files and writes the results to file.

OFF

/FI

-FI

Specifies that the source code is in fixed format. This is the default for source files with the file extensions .for, .f, or .ftn.

OFF

/QIfdiv[-]

IA-32 only

-fdiv_check[-]

IA-32 only

Enables/disables a software patch for the floating-point division flaw for Pentium processor FDIV erratum.

OFF

/Oy[-]

IA-32 only

-fp[-]

IA-32 only

Enables/disables the use of the ebp register in optimizations. When fp is used, the ebp register is used as the frame pointer.

OFF

/Qfp_port

-fp_port

IA-32 only

Rounds floating-point results at assignments and casts. Some speed impact.

OFF

/Qfpp{n}

-fpp{n}

Runs the Fortran preprocessor (fpp) on all Fortran source files (.f, .ftn, .for, and .f90 files) prior to compilation.
n
=0 disable CVF and # directives, equivalent to no fpp.
n
=1 enable CVF conditional compilation and # directives (default)
n
=2 enable only # directives
n
=3 enable only CVF conditional directives

n=1

/FR

-FR

Specifies that the source code is in Fortran 95 free format. This is the default for source files with the .f90 file extensions.

OFF

-QIA64_fr64
Itanium-based systems

 

-fr64
Itanium-based systems

Disable the use of high floating-point registers.

OFF

/ZI, /Z7

-g

Generates symbolic debugging information and line numbers in the object code for use by source-level debuggers.

OFF

/G0

-G0

Prints source listing to stdout (typically your terminal screen) with the contents of expanded INCLUDE files.

OFF

/G1

-G1

Prints a source listing to stdout, without contents of expanded INCLUDE files.

OFF

/help

-help

Prints help message.

OFF

/4I{2|4|8}

-i{2 | 4 | 8}

Defines the default KIND for integer variables and constants in 2, 4, and 8 bytes.

Windows: /4I4
Linux: -i4

/ic

-ic

Runs independent Fortran compilation without accessing and updating Fortran compilation environment (FCE).

OFF

None

-i_dynamic

Enables to link Intel-provided libraries dynamically.

OFF

/Idir

-Idir

Specifies an additional directory to search for include files whose names do not begin with a slash (/).

OFFS

/4{Y|N}d

-implicitnone

Enables/disables the IMPLICIT NONE.

OFF

/Qinline_debug_
info

-inline_debug
_info

Keep the source position of inline code instead of assigning the call-site source position to inlined code.

OFF

/Qip

-ip

Enables single-file interprocedural optimizations within a file.

OFF

/Qip_no_inlining

-ip_no_
inlining

Disables full or partial inlining that would result from the -ip interprocedural optimizations. Requires -ip or -ipo.

ON

/Qip_no_pinlining

IA-32 only

-ip_no_
pinlining

IA-32 only

Disables partial inlining. Requires -ip or -ipo.

OFF

/Qipo

-ipo

Enables interprocedural optimization across files. Compile all objects over entire program with multifile interprocedural optimizations.

OFF

/Qipo_c

-ipo_c

Optimizes across files and produces a multi-file object file. This option performs optimizations as -ipo, but stops prior to the final link stage, leaving an optimized object file.

OFF

/Qipo_obj

-ipo_obj

 Forces the generation of real object files. Requires -ipo.

IA-32: OFF
Itanium Compiler: ON

/Qipo_S

-ipo_S

Optimizes across files and produces a multi-file assembly file. This option performs optimizations as ipo, but stops prior to the final link stage, leaving an optimized assembly file.

OFF

None

-Kpic, -KPIC

Generates position-independent code.

OFF

None

-Ldir

Instructs linker to search dir for libraries.

OFF

None

-lname

Links with the library indicated in name.

 

/Qlowercase

-lowercase

Changes routine names to lowercase characters which are uppercase by default.

Windows: OFF
Linux: ON
 

/Fmfilename

None

Instructs the linker to produce a map file.

OFF

/ML

-ml

Compiles and links with the non-thread safe Fortran libraries.

ON

/Op[-]

-mp

Enables/disables more accurate floating-point precision as well as conformance to the IEEE 754 standards for floating-point arithmetic. Optimization is reduced accordingly. Behavior for NaN comparisons does not conform.

OFF

/Qprec

-mp1

Improves floating-point precision. Some speed impact, but less than
-mp
.

OFF

/MT

-mt

Compiles and links with static multi-thread version of the Fortran runtime library. Thread- safe Fortran libraries.

OFF

/nbs

-nbs

Treats backslash (\) as a normal graphic character, not an escape character.

OFF

/Qnobss_init

-nobss_init

Disables placement of zero-initialized variables in BSS (using DATA section)

OFF

/Oi-

-nolib_inline

Disables inline expansion of intrinsic functions.

ON

/nologo

-nologo

Suppresses compiler version information.

OFF

None

-nus

Disables appending an underscore to external subroutine names.

OFF

/us

None

Append an underscore to external subroutine names

OFF

/Od

-O0

Disables optimizations.

OFF

/O2

-O, -O1, -O2

Optimize for speed, but disable some optimizations that increase code size for a small speed benefit. Default.  

ON

/O3

-O3

Enables -O2 option with more aggressive optimization, for example, loop transformation. Optimizes for maximum speed, but may not improve performance for some programs.

OFF

/Fofilename
 

-ofile

Name the object file or directory for multiple files.

OFF

/Fafilename

None

Name assembly file or directory for multiple files.

 

/Fefilename

None

Name executable file or directory.

 

/Qonetrip

-onetrip

Executes any DO loop at least once. (Identical to the -1 option.).

OFF

/Qopenmp

-openmp

Enables the parallelizer to generate multi-threaded code based on the OpenMP directives. This option implies that -mt and -fpp are ON.

OFF

/Qopenmp_report {0|1|2}

-openmp_report

Controls the OpenMP parallelizers diagnostic levels.

Windows:
/Qopenmp_
report1

Linux:
-openmp
_report1

/P

-P

Preprocesses the fpp files and writes the results to files named according to the compilers default file-naming conventions.

OFF

/Qpad[-]

-pad

Enables/disables changing variable and array memory layout.

OFF

/Qpad_source

-pad_source

Enforces the acknowledgment of blanks at the end of a line.

OFF

/Qpc{32|64|80}

 
  IA-32 only

 

-pc32
-pc64
-pc80

IA-32 only

Enables floating-point significand precision control as follows:
-pc32
to 24-bit significand
-pc64
to 53-bit significand
-pc80
to 64-bit significand

Windows:
/Qpc64

Linux: -pc64

/4{Y|N}posixlib

-posixlib

Enables/disables (Windows) linking to the POSIX library (libPOSF90.a) in the compilation.

Windows:
/4Nposixlib

Linux: OFF

/Qprec_div

IA-32 only

-prec_div

IA-32 only

Improve precision of floating-point divides. Some speed impact.

OFF

/Qprefetch[-]
IA-32 only

-prefetch[-]
IA-32 only

Enables or disables prefetch insertion (requires -O3).

OFF

/Qprof_dirdir

-prof_dirdir

Specifies the directory to hold profile information in the profiling output files, *.dyn and *dpi.

OFF

/Qprof_gen

-prof_gen

Instruments the program for profiling: to get the execution count of each basic block.

OFF

/Qprof_filefile

-prof_filefile

Specifies file name for profiling summary file.

OFF

/Qprof_use

-prof_use

Enables the use of profiling dynamic feedback information during optimization.

OFF

/q

-q

Suppresses compiler output to standard error, __stderr.

OFF

/Qdyncom com1[,com2]

-Qdyncom com1[,com2]

Enables dynamic allocation of given COMMON blocks at run time.

OFF

None

-Qinstalldir

Sets dir as a root directory for compiler installation.

OFF

/Qlocationtool,path

-Qlocationtool,
path

Specifies an alternate version of a tool located at path.

OFF

/Qloccomcom1[,
com2
,...comn]

-Qloccomcom1[,
com2
,...comn]

Enables local allocation of given COMMON blocks at run time.

OFF

/Qoptiontool,opts

-Qoptiontool,
opts

Passes the options, opts, to the tool specified by tool.

OFF

None.

-qp, -p

Compile and link for function profiling with UNIX prof tool.

OFF

/4R{8|16}

-r8, -r16

Sets the default size of real numbers to 8 or 16 bytes; -r8 is the same as -autodouble.

OFF

/Qrcd
IA-32 only

-rcd
IA-32 only

Enables/disables fast float-to-int conversion.

OFF

/S

-S

Produces an assembly output file with optional code.

OFF

/Qsave

-save

Saves all variables (static allocation). Opposite of -auto.

ON

/Qscalar_rep[-]

IA-32 only

-scalar_rep[-]

IA-32 only

Enables or disables scalar replacement performed during loop transformations (requires -O3).

OFF

/Qsox[-]

-sox[-]

Enables (default) or disables saving of compiler options and version in the executable.
Itanium compiler: accepted for compatibility only.

IA-32: ON
Itanium compiler: OFF

None

-syntax

Enables syntax check only. Same as -y.

OFF

/Tffile

-Tffile

 Compile file as Fortran source.

OFF

/G{5|6|7}

IA-32 only

-tpp{5|6|7}

IA-32 only

-tpp5 optimizes for the Intel Pentium processor.
-tpp6
optimizes for the Intel Pentium Pro, Pentium II, and Pentium III processors.
-tpp7
optimizes for the Intel Pentium 4 processor; requires the RedHat version 6.2 and support of Streaming SIMD Extensions 2.

Windows: /G6
Linux: -tpp6

/4{Y|N}d

-u

Sets IMPLICIT NONE by default.

Windows: /4Yd
Linux: ON

/Uname

-Uname

Removes a defined macro; equivalent to an #undef preprocessing directive.

OFF

/Qunroll[n]

-unroll[n]

 - Use n to set maximum number of times to unroll a loop.
- Omit n to let the compiler decide whether to perform unrolling or not.
- Use n = 0 to disable unroller.
The Itanium compiler currently uses only n = 0; all other values are NOPs.

ON

/Quppercase

-uppercase

Changes routine names to all uppercase characters.

Windows: ON
Linux: OFF

None

-use_asm
IA-32 only

Generates an assembly file and tells the assembler to generate the object file.

OFF

None

-use_msasm
IA-32 only

Support Microsoft style assembly language insertion using MASM style syntax and if requested, output assembly in MASM format.

OFF

/Vtext

-V

Displays compiler version information.

OFF

None

-v

Show driver tool commands and execute tools.

OFF

/4{Y|N}portlib

-Vaxlib

Enables/disables linking to portlib library (libPEPCF90.a) in the compilation.

OFF

/Qvec[-]
IA-32 only

-vec[-]
IA-32 only

Enables/disables vectorizer.

ON

/Qvec_report{n}

IA-32 only

-vec_report{n}

IA-32 only

Controls amount of vectorizer diagnostic information as follows:
n
= 0: no information
n
= 1: indicate vectorizer integer loops
n
= 2: same as n = 1 plus non-vectorizer integer loops
n
= 3: same as n = 1 plus dependence information.
n
 = 4: indicate non-vectorized loops
n
 = 5: indicate non-vectorized loops and prohibiting data dependence information.

n = 1

/Qvms

-vms

Enables support for I/O and DEC extensions to Fortran that were introduced by Digital VMS and Compaq Fortran compilers.

OFF

/w

-w

Suppresses all warning messages.

OFF

/w90

-w90, -w95

Suppresses warning messages about non-standard Fortran features used.

ON

/W0

-w0

Disables display of warnings.

OFF

/W1

-w1

Displays warnings.

ON

/WB

-WB

Issues a warning about out-of-bounds array references at compile time.

OFF

/Qwp_ipo

-wp_ipo

A whole program assertion flag for multi-file optimization with the assumption that all user variables and user functions seen in the compiled sources are referenced only within those sources. The user must guarantee that this assumption is safe.

OFF

/Qx{i|M|K|W}

IA-32 only

-x{i|M|K|W}

IA-32 only

Generates processor-specific code corresponding to one of codes: i, M, K, and W while also generating generic IA-32 code. This differs from
-ax{n}
in that this targets a specific processor. With this option, the resulting program may not run on processors older than the target specified.
i
=  Pentium Pro & Pentium II processor information
M
= MMX" instructions
K
= streaming SIMD extensions W = PentiumŪ 4 new instructions

OFF

/X

-X

Removes standard directories from the include file search.

OFF

None

-y

Enables syntax check only.

OFF

/Qzero

-zero

Implicitly initializes to zero all data that is uninitialized otherwise. Used in conjunction with -save.

OFF

/Zp{1|2|4|8|16}

-Zp{1|2|4|8|16}

Specifies alignment constraint for structures on 1-, 2-, 4-, 8- or 16-byte boundary.

Windows: OFF
Linux:
IA-32: -Zp4
Itanium Compiler: -Zp8