Optimizing for Specific Processors Overview

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

The following table lists the most common options used to target compiles for specific processor families.

Windows*

Linux*

Target Processors

/G{5|6|7}

-mtune=<target cpu>

IA-32 and IntelŪ EM64T processors.

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

Note

Mac OS*: This option is not supported.

/G{1|2}

-mtune=<target cpu>

ItaniumŪ processors.

See Options for ItaniumŪ 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}

Target applications to run on the specific processor-based systems and still gear your code to any processors that took advantage of the following options:

  • 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.