หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Enable one or more architecture features for x64 code generation.
Note
/feature:APX support is experimental and subject to change.
Syntax
/feature:<arg>
Arguments
To enable one or more features the x64 target supports, specify one or more of the following feature arguments:
| Feature argument | Description | Supported in version |
|---|---|---|
APX |
Enables preview support for Intel APX (Advanced Performance Extensions). Enables the compiler to target various APX features like Extended General-Purpose Registers (EGPRs), New Data Destination (NDD), No-Flags Update (NF), new conditional ISA and optimized registers save/restore operations. For more information, see Intel Advanced Performance Extensions (APX). | MSVC Build Tools 14.51 (Preview Support) |
Remarks
Example usage: to enable APX, specify /feature:APX.
When /feature:APX is specified, the following preprocessor macros are defined: __APX_F__, __CCMP__, __CF__, __EGPR__, __NDD__, __NF__, __PPX__, __PUSH2POP2__, and __ZU__. For more information, see Microsoft-specific predefined macros.
To set the /feature compiler option in Visual Studio
Open the Property Pages dialog box for the project. For more information, see Set C++ compiler and build properties in Visual Studio.
Select the Configuration Properties > C/C++ > Command Line property page.
In the Additional options box, add
/feature:APX. Choose OK to save your changes.
To set this compiler option programmatically
- See AdditionalOptions.
See also
/arch (x64)
/arch (Minimum CPU architecture)
MSVC compiler options
MSVC compiler command-line syntax