/arch (ARM)
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at -arch (ARM).
Specifies the architecture for code generation on ARM. See also /arch (x86) and /arch (x64).
Syntax
/arch:[ARMv7VE|VFPv4]
Arguments
/arch:ARMv7VE
Enables the use of ARMv7VE Virtualization Extensions instructions.
/arch:VFPv4
Enables the use of ARM VFPv4 instructions. If this option is not specified, VFPv3 is the default.
Remarks
The _M_ARM_FP
macro (for ARM only) indicates which, if any, /arch compiler option was used. For more information, see Predefined Macros.
When you use /clr to compile, /arch has no effect on code generation for managed functions. /arch only affects code generation for native functions.
To set the /arch:ARMv7VE or /arch:VFPv4 compiler option in Visual Studio
Open the Property Pages dialog box for the project. For more information, see How to: Open Project Property Pages.
Select the C/C++ folder.
Select the Command Line property page.
In the Additional options box, add
/arch:ARMv7VE
or/arch:VFPv4
.
To set this compiler option programmatically
See Also
/arch (Minimum CPU Architecture)
Compiler Options
Setting Compiler Options