Requesting Code Generation for a Specific Processor Generation
The /architecture (/arch) option determines the type of code that will be
generated for this program. On an ia32 system, you can specify whether the
code to be generated can be run:
- On Pentium 4 processor systems only, by generating code using the base set of Pentium instructions
plus MMX, SSE, and SSE2 instruction extensions.
- On AMD Athlon processor systems only, by generating code using the base set of Pentium instructions plus
MMX, SSE, 3DNow, and Enhanced 3DNow instruction extensions.
- On AMD K6_2, AMD K6_III, and AMD Athlon processor systems only, by generating code using the base
set of Pentium instructions plus MMX, SSE, and 3DNow instruction extensions.
- On Intel Pentium III and Pentium 4 processor systems, and AMD K6_2, AMD K6_III, and AMD
Athlon processor systems only, by generating code using the base set of Pentium instructions plus
MMX and SSE instruction extensions.
- On Intel Pentium Pro, Pentium II, and higher Intel processor systems, and AMD K6 and
higher AMD processor systems only, by generating code using the base set of Pentium instructions plus
MMX instruction extensions.
- On Pentium (586) and higher Intel and AMD systems only, by generating code using the base set of Pentium
instructions.
- On all ia32 Intel and AMD systems, by generating code using a generic blend of instructions
that runs with moderate efficiency on all Intel and AMD systems.
You can also request that the type of generated code be determined by the host system being
used to compile the application.
For an ia64 system, request either the type of host system being used for compilation
or request generic blend of instructions.
The /arch:keyword option uses the same keywords as the /tune:keyword option.
For more information: