/arch (x64)

Specifies the architecture for code generation on x64. See also /arch (x86) and /arch (ARM).

/arch:AVX

Arguments

  • /arch:AVX
    Enables the use of Intel Advanced Vector Extensions instructions.

Remarks

When you use /clr to compile, /arch has no effect on code generation for managed functions. /arch only affects code generation for native functions.

The __AVX__ preprocessor symbol is defined when the /arch:AVX compiler option is specified. For more information, see Predefined Macros.

To set the /arch:AVX compiler option in Visual Studio

  1. Open the Property Pages dialog box for the project. For more information, see How to: Open Project Property Pages.

  2. Select the C/C++ folder.

  3. Select the Command Line property page.

  4. In the Additional options box, add /arch:AVX.

To set this compiler option programmatically

See Also

Reference

/arch (Minimum CPU Architecture)

Compiler Options

Setting Compiler Options