|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
/Oy (Frame-Pointer Omission)
Suppresses creation of frame pointers on the call stack.
This option speeds function calls, because no frame pointers need to be set up and removed. It also frees one more register, (EBP on the Intel 386 or later) for storing frequently used variables and sub-expressions.
/Oy is only available in x86 compilers.
If your code requires EBP-based addressing, you can specify the /Oy– option after the /Ox option or usewith 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).
The(Full Optimization) and (Fast Code) options imply /Oy. Specifying /Oy– after the /Ox, /O1, or /O2 option disables /Oy, whether it is explicit or implied.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see.
Click the C/C++ folder.
Click the Optimization property page.
Modify the Omit Frame Pointers property.
To set this compiler option programmatically