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 |
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:
|
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. |
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 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 -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.
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 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 |
IDE Equivalent
Visual Studio: Code Generation > Intel Processor-Specific Optimization
Eclipse: Code Generation > Intel Processor-Specific Optimization
Alternate Options
None