Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
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.
APX extends the x64 architecture with new registers and instructions, which affects how the compiler generates calls, preserves state across function boundaries, and emits unwind metadata. The following articles describe the x64 conventions and unwind information related to APX:
- Caller/callee saved registers
Describes which registers a callee must preserve and which the caller is responsible for saving across a call on x64. - setjmp/longjmp
Explains how nonlocal jumps capture and restore nonvolatile register state on x64, including the registers that participate in the jump buffer. - Register volatility and preservation
Summarizes the x64 software conventions for volatile and nonvolatile general-purpose,XMM,YMM, andZMMregisters, and the rules callees must follow to preserve them. - Exception handling unwind information V3
Preview specification of the V3 unwind information format used to describe prologs, epilogs, and frame layout for x64 code, including the extended state introduced by APX.
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