You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,9 +17,9 @@ Suppresses creation of frame pointers on the call stack.
17
17
18
18
This option speeds function calls, because no frame pointers need to be set up and removed. It also frees one more register for general usage.
19
19
20
-
**/Oy** enables frame-pointer omission and **/Oy-** disables omission. **/Oy**is available only in x86 compilers.
20
+
**/Oy** enables frame-pointer omission and **/Oy-** disables omission. In x64 compilers, **/Oy**and **/Oy-** are not available.
21
21
22
-
If your code requires EBP-based addressing, you can specify the **/Oy-** option after the **/Ox** option or use [optimize](../../preprocessor/optimize.md) with the "**y**" and **off** arguments to gain maximum optimization with EBP-based addressing. The compiler detects most situations where EBP-based addressing is required (for instance, with the `_alloca` and `setjmp` functions and with structured exception handling).
22
+
If your code requires frame-based addressing, you can specify the **/Oy-** option after the **/Ox** option or use [optimize](../../preprocessor/optimize.md) with the "**y**" and **off** arguments to gain maximum optimization with frame-based addressing. The compiler detects most situations where frame-based addressing is required (for instance, with the `_alloca` and `setjmp` functions and with structured exception handling).
23
23
24
24
The [/Ox (Enable Most Speed Optimizations)](../../build/reference/ox-full-optimization.md) and [/O1, /O2 (Minimize Size, Maximize Speed)](../../build/reference/o1-o2-minimize-size-maximize-speed.md) options imply **/Oy**. Specifying **/Oy-** after the **/Ox**, **/O1**, or **/O2** option disables **/Oy**, whether it is explicit or implied.
25
25
@@ -29,20 +29,16 @@ The **/Oy** compiler option makes using the debugger more difficult because the
29
29
30
30
1. Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../../ide/working-with-project-properties.md).
31
31
32
-
1.Click the **C/C++**folder.
32
+
1.Select the **Configuration Properties** > **C/C++**> **Optimization** property page.
33
33
34
-
1. Click the **Optimization** property page.
35
-
36
-
1. Modify the **Omit Frame Pointers** property. This property adds or removes only the **/Oy** option. If you want to add the **/Oy-** option, click **Command Line** and modify **Additional options**.
34
+
1. Modify the **Omit Frame Pointers** property. This property adds or removes only the **/Oy** option. If you want to add the **/Oy-** option, select the **Command Line** property page and modify **Additional options**.
37
35
38
36
### To set this compiler option programmatically
39
37
40
38
- See <xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.OmitFramePointers%2A>.
0 commit comments