Optimizing for Specific Processors Overview

This section describes summarizes the options used to target specific processors. Additionally, this section provides some compiler command examples that demonstrate how to use these options. See Targeting a Processor.

The following table lists the options and switches used to target compiles for specific processor families.

Windows*

Linux*

Target Processors

/G{1|2}

-tpp{1|2}

ItaniumŪ processors.

See Options for ItaniumŪ processors in Targeting a Processor.

/G{5|6|7}

-tpp{5|6|7}

 

IA-32 processors.

See Options for IA-32 Processors in Targeting a Processor.

/Qx{K|W|N|B|P}

/Qax{K|W|N|B|P}

  

-x{K|W|N|B|P}

-ax{K|W|N|B|P}

Generate code that is specific to processor-instruction extensions.

You can target your applications to run on the specific processor-based systems, like IntelŪ PentiumŪ M processors or IntelŪ PentiumŪ 4 processors with Streaming SIMD Extensions 3 (SSE3) instruction support and still gear your code to any of the previous processors specified that took advantage of the following option switches:

  • Linux: -x{K|W|N} or -ax{K|W|N}

  • Windows: /Qx{N} or /Qax{N}

See Processor-specific Optimization and Automatic Processor-specific Optimization.