Visible to Intel only — GUID: GUID-09734487-1819-4C1E-B314-2497F2B64C45
Visible to Intel only — GUID: GUID-09734487-1819-4C1E-B314-2497F2B64C45
x, Qx
Tells the compiler which processor features it may target, including which instruction sets and optimizations it may generate.
Syntax
Linux: |
-xcode |
macOS: |
-xcode |
Windows: |
/Qxcode |
Arguments
code |
Specifies a feature set that the compiler can target, including which instruction sets and optimizations it may generate. Possible values are:
You can also specify a Host. For more information, see option [Q]xHost. |
Default
OFF |
If option -x or -march is not specified (Linux), or if option /Qx or /arch is not specified (Windows), the default target architecture supports Intel® SSE2 instructions. The default on macOS systems is [Q]xSSSE3. |
Description
This option tells the compiler which processor features it may target, including which instruction sets and optimizations it may generate.
The resulting executables created from these option code values can only be run on Intel® processors that support the indicated instruction set.
Do not use code values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior.
Compiling the main program with any of the code values produces binaries that display a fatal runtime error if they are executed on unsupported processors, including all non-Intel processors.
Compiler options -march (Linux) and /arch (Windows) produce binaries that can be run on processors not made by Intel that implement the same capabilities as the corresponding Intel® processors.
The -x and /Qx options enable additional optimizations not enabled with options -march or /arch (nor with options -ax and /Qax).
Linux
Options -x and -march are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
Windows
Options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
All settings (except SSE2) do a CPU check. However, if you specify option -O0 (Linux and macOS) or option /Od (Windows), no CPU check is performed.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation. Offloading can only be enabled when using ifx.
Product and Performance Information |
---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Notice revision #20201201 |
IDE Equivalent
Visual Studio: Code Generation > Intel Processor-Specific Optimization
Alternate Options
None