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.
In this section, we provide the following:
An alphabetical list of compiler options that includes their short descriptions
A list of deprecated options for SYCL and lists of deprecated and removed options for C++
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.
Clang compiler options are supported for this compiler. We do not document these options, but you can check -help on the command line to see if a particular option is supported. For more information about Clang options, see the Clang documentation.
Some defaults for the Intel compiler may differ from the defaults for the open source compiler. For example, the following are some default setting differences between the Intel compiler and the open source Clang compiler:
Intel Default |
Clang Default |
---|---|
-fp-model=fast (or -ffast-math) |
-fp-model=precise (or -fno-fast-math) |
-O2 |
-O0 |
-fveclib=SVML |
No default is set for -fveclib |
If you want to use Microsoft Visual C++ (MSVC)-compatible option syntax, where options start with /, you must use the appropriate compiler. For information on which compiler driver to use, refer to Invoke the Compiler.
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 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). |
/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 option -[no-]global_hoist, -global_hoist enables the option, while -no-global_hoist 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
- Advanced Optimization Options
- Code Generation Options
- Offload Compilation, OpenMP*, and Parallel Processing Options
- Interprocedural Optimization Options
- Profile Guided Optimization Options
- Optimization Report 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
- Portability and GCC-Compatible Warning Options