x, Qx

Directs the compiler to generate specialized and optimized code for the processor that executes your program.

IDE Equivalent

Windows: Optimization > Require Intel(R) Processor Extensions

Linux: None

Architectures

IA-32, IntelŪ EM64T

Syntax

Linux and Mac OS: -xprocessor
Windows:  /Qxprocessor

Arguments

processor Is the processor for which you want to target your program. Possible values are:
  K Code is optimized for IntelŪ PentiumŪ III and compatible Intel processors.
  W Code is optimized for Intel Pentium 4 and compatible Intel processors.
  N Code is optimized for Intel Pentium 4 and compatible Intel processors with Streaming SIMD Extensions 2. The resulting code may contain unconditional use of features that are not supported on other processors.
This option also enables new optimizations in addition to Intel processor-specific optimizations including advanced data layout and code restructuring optimizations to improve memory accesses for Intel processors.
  B Code is optimized for Intel Pentium M and compatible Intel processors.
This option also enables new optimizations in addition to Intel processor-specific optimizations.
  P Code is optimized for IntelŪ Core™ Duo processors, IntelŪ Core™ Solo processors, IntelŪ PentiumŪ 4 processors with Streaming SIMD Extensions 3, and compatible Intel processors with Streaming SIMD Extensions 3. The resulting code may contain unconditional use of features that are not supported on other processors.
This option also enables new optimizations in addition to Intel processor-specific optimizations including advanced data layout and code restructuring optimizations to improve memory accesses for Intel processors.

Default

Linux and Windows: OFF
Mac OS: -xP
On Windows and Linux IA-32 systems, no processor-specific code is generated by the compiler. On IntelŪ EM64T systems, code is generated that is optimized for Intel. On Mac OS systems, code is optimized for IntelŪ Core™ Duo processors and IntelŪ PentiumŪ 4 processors with Streaming SIMD Extensions 3 (SSE3) instruction support.

Description

This option directs the compiler to generate specialized and optimized code for the IntelŪ processor that executes your program. It lets you target your program to run on a specific Intel processor.

The resulting code may contain unconditional use of features that are not supported on other processors.

On IntelŪ EM64T systems, W and P are the only valid processor values.

On Mac OS systems, P is the only valid processor value. On these systems, it is the default and is always set.

If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: P, B, N, W, K.

Do not use these options if you are executing a program on a processor that is not an IntelŪ processor. If you use these options on a non-compatible processor to compile the main program (in Fortran) or the function main() in C/C++, the program may fail with an illegal instruction exception or display other unexpected behavior.

In particular, such programs compiled with processor values N, B, or P will display a fatal run-time error if they are executed on unsupported processors. For more information, see your Optimizing Applications guide.

Alternate Options

None

See Also

ax compiler option