Visible to Intel only — GUID: GUID-41D11B5D-FB46-44D4-9A85-F2303AFDF3E0
Visible to Intel only — GUID: GUID-41D11B5D-FB46-44D4-9A85-F2303AFDF3E0
Compiler Options
This compiler supports many compiler options you can use in your applications.
macOS support is only available in ifort. This support is deprecated and it will not be available starting with the oneAPI 2024.0 release.
The LLVM-based Intel® Fortran Compiler (ifx) supports many Intel® Fortran Compiler Classic compiler options, but full implementation is not yet available. Implementation will be improved in future releases.
In this section, we provide the following:
An alphabetical list of compiler options that includes their short descriptions
Lists of deprecated and removed options
General rules for compiler options and the conventions we use when referring to options
Details about what appears in the compiler option descriptions
A description of each compiler option. The descriptions appear under the option's functional category. Within each category, the options are listed in alphabetical order.
Several Clang compiler options are supported for the ifx compiler, such as some of the -fprofile options. We do not document these options. For more information about Clang options, see the Clang documentation.
Note that for ifx, the Clang -fprofile options replace the functionality of the [Q]prof options that are only supported for ifort.
For details about new functionality, such as new compiler options, see the Release Notes for the product.
Conventions Used for Compiler Options
The following conventions are used to describe compiler options.
compiler option name shortcuts |
The following conventions are used as shortcuts when referencing compiler option names in descriptions:
More dissimilar compiler option names are shown in full. |
/option or -option |
A slash before an option name indicates the option is available on Windows. A dash before an option name indicates the option is available on Linux and macOS systems. For example:
NOTE:
If an option is available on all supported operating systems, no slash or dash appears in the general description of the option. The slash and dash will only appear where the option syntax is described.
|
/option:argument or -option=argument |
Indicates that an option requires an argument (parameter). For example, you must specify an argument for the following options:
|
/option:keyword or -option=keyword |
Indicates that an option requires one of the keyword values. |
/option[:keyword ] or -option[=keyword ] |
Indicates that the option can be used alone or with an optional keyword. |
option[n] or option[:n] or option[=n] |
Indicates that the option can be used alone or with an optional value. For example, in -unroll[=n], the n can be omitted or a valid value can be specified for n. |
option[-] |
Indicates that a trailing hyphen disables the option. For example, /Qglobal_hoist- disables the Windows option /Qglobal_hoist. |
[no]option or [no-]option |
Indicates that no or no- preceding an option disables the option. For example: In the Linux and macOS option -[no-]global_hoist, -global_hoist enables the option, while -no-global_hoist disables it. In the Windows option /[no]traceback, /traceback enables the option, while /notraceback disables it. In some options, the no appears later in the option name. For example, -fno-common disables the -fcommon option. |
- Alphabetical Option List
- General Rules for Compiler Options
- What Appears in the Compiler Option Descriptions
- Optimization Options
- Code Generation Options
- Interprocedural Optimization Options
- Advanced Optimization Options
- Profile Guided Optimization Options
- Optimization Report Options
- Offload Compilation, OpenMP*, and Parallel Processing Options
- Floating-Point Options
- Inlining Options
- Output, Debug, and Precompiled Header Options
- Preprocessor Options
- Component Control Options
- Language Options
- Data Options
- Compiler Diagnostic Options
- Compatibility Options
- Linking or Linker Options
- Miscellaneous Options
- Deprecated and Removed Compiler Options
- Display Option Information
- Alternate Compiler Options