-
Notifications
You must be signed in to change notification settings - Fork 967
Add compiler option /feature
and update the /arch
(ARM64) option
#5036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
03c38e2
ARM64 feature option
michelleangela eda64bc
fix date
michelleangela 08a8ec3
fix note format
michelleangela 53b271d
change wording
michelleangela 313e825
re-word
michelleangela acd3fdf
Update /arch link
michelleangela File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
description: "Learn more about: /feature (ARM64)" | ||
title: "/feature (ARM64)" | ||
ms.date: 05/15/2024 | ||
--- | ||
# `/feature` (ARM64) | ||
|
||
Optionally specify one or more Arm A-Profile architecture features to enable for an ARM64 extension specified by **`/arch`** (ARM64). For more information on **`/arch`** (ARM64), see [`/arch` (ARM64)](arch-arm64.md). | ||
|
||
## Syntax | ||
|
||
> **`/feature:<arg1>`**[**`+arg2`**] | ||
|
||
## Arguments | ||
Specify one or more of the following available features to enable if a targeted ARM64 extension supports it. | ||
|
||
| Feature argument | Feature identifier | Optional from | Enabled by default | Description | | ||
|--|--|--|--|--| | ||
|**`lse`** | FEAT_LSE | Armv8.0 | Armv8.1 | Large System Extensions. | | ||
|**`rcpc`** | FEAT_LRCPC | Armv8.2 | Armv8.3 | Load-Acquire RCpc instructions. | | ||
|
||
## Remarks | ||
|
||
Example usage: to enable FEAT_LSE, use feature argument **`lse`** so that the option is **`/feature:lse`**. | ||
|
||
If there are conflicting feature arguments specified by **`/feature`**, the right-most feature is enabled. Enabling a feature that is not supported by a targeted architecture may cause unexpected behavior, especially if a CPU does not implement the feature. | ||
|
||
If you use **`/feature`** in combination of **`/arch`** (ARM64), it will result in the same behavior as appending feature arguments to **`/arch`** (ARM64). For example, if you are using both **`/feature:lse`** and **`/arch:armv8.0`**, it is the same as if you're only using **`/arch:armv8.0+lse`**. **`/feature`** exists as another way to specify features without having to specify them in **`/arch`** (ARM64). | ||
|
||
### To set the `/feature` compiler option in Visual Studio | ||
|
||
1. Open the **Property Pages** dialog box for the project. For more information, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md). | ||
|
||
1. Select the **Configuration Properties** > **C/C++** > **Command Line** property page. | ||
|
||
1. In the **Additional options** box, add *`/feature:lse`* or replace `lse` with the feature to enable. Choose **OK** to save your changes. | ||
|
||
### To set this compiler option programmatically | ||
|
||
- See <xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A>. | ||
|
||
## See also | ||
|
||
[`/arch` (Minimum CPU architecture)](arch-minimum-cpu-architecture.md)\ | ||
[MSVC compiler options](compiler-options.md)\ | ||
[MSVC compiler command-line syntax](compiler-command-line-syntax.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.