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> -mcpu=<target cpu> |
IA-32 and IntelŪ EM64T processors. See Options for IA-32 Processors in Targeting a Processor.
|
/G{1|2} |
-mtune=<target cpu> -mcpu=<target cpu> |
ItaniumŪ processors. See Options for ItaniumŪ processors in Targeting a Processor. |
/Qx{K|W|N|B|P|T} /Qax{K|W|N|B|P|T} |
-x{K|W|N|B|P|T} -ax{K|W|N|B|P|T} |
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:
See Processor-specific Optimization and Automatic Processor-specific Optimization. |