|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
/favor (Optimize for x64)
/favor:option is available only in the x64 compiler and produces the code that is optimized for a specific x64 architecture or for the specifics of micro-architectures in both the AMD64 and Intel64 architectures.
/favor:blend produces the code that is optimized for the specifics of micro-architectures in both the AMD64 and Intel64 architectures. While /favor:blend may not give the best performance possible on a specific processor, it is designed to give the best performance across a broad range of x64 processors. By default /favor:blend is in effect.
/favor:AMD64 optimizes the generated code for the AMD Opteron, and Athlon processors that support 64-bit extensions. The optimized code can run on all x64 compatible platforms. Code that is generated by using /favor:AMD64 could cause worse performance on Intel processors that support Intel64.
/favor:INTEL64 is available only in the x64 compiler and optimizes the generated code for Intel processors that support Intel64, which typically yields better performance for that platform. The resulting code can run on any x64 platform. Code generated with /favor:INTEL64 could cause worse performance on AMD Opteron, and Athlon processors that support 64-bit extensions.
Intel64 architecture was previously known as Extended Memory 64 Technology, and the corresponding compiler option was /favor:EM64T.
See x64 Software Conventions for information about programming for the x64 architecture.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
Click the C/C++ folder.
Click the Command Line property page.
Type the compiler option in the Additional Options box.
To set this compiler option programmatically