| title | -arch (ARM) | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| dev_langs |
|
|||||||||||||
| ms.assetid | 4f1406ff-f174-487c-a126-8ab06cf447c1 | |||||||||||||
| caps.latest.revision | 5 | |||||||||||||
| author | corob-msft | |||||||||||||
| ms.author | corob | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Specifies the architecture for code generation on ARM. See also /arch (x86) and /arch (x64).
/arch:[ARMv7VE|VFPv4]
/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.
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.
-
Open the Property Pages dialog box for the project. For more information, see Working with Project Properties.
-
Select the C/C++ folder.
-
Select the Command Line property page.
-
In the Additional options box, add
/arch:ARMv7VEor/arch:VFPv4.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.EnableEnhancedInstructionSet%2A.
/arch (Minimum CPU Architecture)
Compiler Options
Setting Compiler Options