Processor-specific Optimization (IA-32 only)

The -x (Linux*) or /Qx (Windows*) options target your program to run on a specific Intel® processor. The resulting code might contain unconditional use of features that are not supported on other processors.

Windows*

Linux*

Optimizes code for...

/QxK

-xK

Intel® Pentium® III and compatible Intel processors

/QxW

-xW

Intel Pentium 4 and compatible Intel processors

/QxN

-xN

Intel Pentium 4 and compatible Intel processors

/QxB

-xB

Intel Pentium M and compatible Intel processors

/QxP

-xP

Intel® Pentium® 4 processors with Streaming SIMD Extensions 3 (SSE3) instruction support

For more information about the options listed in the table above, see the following topic:

The following examples compile an application for Intel Pentium 4 and compatible processors. The resulting binary might not execute correctly on Pentium, Pentium Pro, Pentium II, Pentium III, or Pentium with MMX™ technology processors, or on x86 processors not provided by Intel Corporation.

Platform

Example

Linux

icpc -xW prog.cpp

Windows

icl /QxW prog.cpp

Caution

If a program compiled with -x (Linux) or /Qx (Windows) is executed on a non-compatible processor, it might fail with an illegal instruction exception or display other unexpected behavior. Executing programs compiled with -xN, -xB or -xP (Linux) or /QxN, /QxB or /QxP (Windows) on unsupported processors will display the following run-time error:

Fatal Error : This program was not built to run on the processor in your system.