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.
Linux: |
-xcode |
Windows: |
/Qxcode |
code |
Specifies a feature set that the compiler can target, including which instruction sets and optimizations it may generate. Many of the following descriptions refer to Intel® Streaming SIMD Extensions (Intel® SSE) and Supplemental Streaming SIMD Extensions (Intel® SSSE). Possible values are:
|
varies |
On Windows systems, if neither /Qx nor /arch is specified, the default target architecture supports Intel® SSE2 instructions. On Linux systems, if neither -x nor -m is specified, the default target architecture supports Intel® SSE2 instructions. |
This option tells the compiler which processor features it may target, including which instruction sets and optimizations it may generate. It also enables optimizations in addition to Intel feature-specific optimizations.
The specialized code generated by this option may only run on a subset of Intel® processors.
The resulting executables created from these option code values can only be run on Intel® processors that support the indicated instruction set.
The binaries produced by these code values will run on Intel® processors that support the specified features.
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 function main() 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 m and arch produce binaries that should 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 -m or /arch.
Linux
Options -x and -m 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) 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.
Product and Performance Information |
---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Notice revision #20201201 |
Visual Studio: Code Generation > Intel Processor-Specific Optimization
Eclipse: Code Generation > Intel Processor-Specific Optimization
Xcode: Code Generation > Intel Processor-Specific Optimization
None