Skip to content

Commit 93705ce

Browse files
author
Colin Robertson
authored
Merge pull request #1593 from MicrosoftDocs/FromPublicMasterBranch
Confirm merge from FromPublicMasterBranch to master to sync with https://github.com/MicrosoftDocs/cpp-docs (branch master)
2 parents 432a41f + c303f59 commit 93705ce

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "/Oy (Frame-Pointer Omission)"
3-
ms.date: "09/22/2017"
3+
ms.date: "11/19/2018"
44
f1_keywords: ["VC.Project.VCCLCompilerTool.OmitFramePointers", "/oy"]
55
helpviewer_keywords: ["omit frame pointer", "Oy compiler option [C++]", "stack frame pointer compiler option [C++]", "-Oy compiler option [C++]", "frame pointer omission compiler option [C++]", "suppress frame pointer creation", "/Oy compiler option [C++]"]
66
ms.assetid: c451da86-5297-4c5a-92bc-561d41379853
@@ -17,9 +17,9 @@ Suppresses creation of frame pointers on the call stack.
1717

1818
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.
1919

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.
2121

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).
2323

2424
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.
2525

@@ -29,20 +29,16 @@ The **/Oy** compiler option makes using the debugger more difficult because the
2929

3030
1. Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../../ide/working-with-project-properties.md).
3131

32-
1. Click the **C/C++** folder.
32+
1. Select the **Configuration Properties** > **C/C++** > **Optimization** property page.
3333

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**.
3735

3836
### To set this compiler option programmatically
3937

4038
- See <xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.OmitFramePointers%2A>.
4139

4240
## See Also
4341

44-
[/O Options (Optimize Code)](../../build/reference/o-options-optimize-code.md)
45-
46-
[Compiler Options](../../build/reference/compiler-options.md)
47-
48-
[Setting Compiler Options](../../build/reference/setting-compiler-options.md)
42+
[/O Options (Optimize Code)](../../build/reference/o-options-optimize-code.md)<br/>
43+
[Compiler Options](../../build/reference/compiler-options.md)<br/>
44+
[Setting Compiler Options](../../build/reference/setting-compiler-options.md)<br/>

docs/mfc/reference/wm-message-handlers-f-k.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following map entries on the left correspond to the function prototypes on t
1313
|---------------|------------------------|
1414
|ON_WM_FONTCHANGE()|afx_msg void [OnFontChange](../../mfc/reference/cwnd-class.md#onfontchange)();|
1515
|ON_WM_GETDLGCODE()|afx_msg UINT [OnGetDlgCode](../../mfc/reference/cwnd-class.md#ongetdlgcode)();|
16-
|ON_WM_GETMINMAXINFO()|afx_msg void [OnGetMinMaxInfo](../../mfc/reference/cwnd-class.md#ongetminmaxinfo)(LPPOINT);|
16+
|ON_WM_GETMINMAXINFO()|afx_msg void [OnGetMinMaxInfo](../../mfc/reference/cwnd-class.md#ongetminmaxinfo)(MINMAXINFO*);|
1717
|ON_WM_HELPINFO()|afx_msg BOOL [OnHelpInfo](../../mfc/reference/cwnd-class.md#onhelpinfo)(HELPINFO*);|
1818
|ON_WM_HOTKEY()|afx_msg void [OnHotKey](../../mfc/reference/cwnd-class.md#onhotkey)(UINT, UINT, UINT);|
1919
|ON_WM_HSCROLL()|afx_msg void [OnHScroll](../../mfc/reference/cwnd-class.md#onhscroll)(UINT, UINT, CWnd*);|

0 commit comments

Comments
 (0)