|
The compiler option /Qax[S, T, P, B, N, W, K] on Windows* or -ax[S, T, P, B, N, W, K] on Linux* directs the compiler to find opportunities to generate separate versions of functions that use instructions supported on specified Intel® processors. For Mac OS*, the option is -ax[ T, P]. T, and P are the only valid processor values on Mac* OS. These letters, or processor values, designate processors or microarchitectures with differing capabilities and features. The /Qax or -ax option is used to create a single binary with a generic code path and optimized code paths for a variety of processors. In this way, a single executable can be created to run optimally on many different processors. Please consult the Compiler Documentation, Compiler Options for the latest information on these processor values.The /Qax and -ax options allow the compiler to generate more that one optimized code path. Following the /Qax or -ax, one places a list of processor values for the optimized code paths to be generated.
For example, on Windows the option /QaxTPN would direct the compiler to generate a generic code path, a code path or version for Intel® Core™2 Duo processor features (T) including SSSE3, SSE3, SSE2 and SSE instructions, a code path for Intel® Core™ microarchitecture and Intel NetBurst® microarchitecture (P), and a code path for Intel® Pentium® 4 processors and Intel® Xeon® processors with SSE2 (N).
Note: The processors and/or microarchitectures supported by this option evolve over time. It is good practice to read the Compiler Documentation and Release Notes with each compiler version to determine the supported processors or microarchitectures. Processor values only represent the possible code that the compiler can generate - it does NOT imply any specific hardware support by any particular hardware vendor.
This applies to:
|