Compartir a través de


/favor (Optimize for 64) 

**/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 Extended Memory 64 Technology (EM64T) architectures.

/favor:blend
/favor:AMD64
/favor:EM64T

Remarks

/favor:blend produces the code that is optimized for the specifics of micro-architectures in both the AMD64 and EM64T 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. /favor:blend is in effect by default.

/favor:AMD64 optimizes the generated code for the AMD Opteron, and Athlon processors supporting 64-bit extensions, typically resulting in better performance for that platform. The resulting code can run on all x64 compatible platforms. Code generated with /favor:AMD64 could result in worse performance on Intel processors supporting EM64T.

/favor:EM64T is available only in the x64 compiler and optimizes the generated code for Intel processors supporting EM64T, typically resulting in better performance for that platform. The resulting code can run on any x64 platform. Code generated with /favor:EM64T could result in worse performance on AMD Opteron, and Athlon processors supporting 64-bit extensions.

See x64 Software Conventions for information on programming for the x64 architecture.

To set this compiler option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.

  2. Click the C/C++ folder.

  3. Click the Command Line property page.

  4. Type the compiler option in the Additional Options box.

To set this compiler option programmatically

See Also

Reference

Compiler Options
Setting Compiler Options