Developer Guide and Reference

Contents

momit-leaf-frame-pointer

Determines whether the frame pointer is omitted or kept in leaf functions.

Syntax

Linux:
-momit-leaf-frame-pointer
-mno-omit-leaf-frame-pointer
macOS:
-momit-leaf-frame-pointer
-mno-omit-leaf-frame-pointer
Windows:
None
Arguments
None
Default
Varies
If you specify option
-fomit-frame-pointer
(or it is set by default), the default is
-momit-leaf-frame-pointer
. If you specify option
-fno-omit-frame-pointer
, the default is
-mno-omit-leaf-frame-pointer
.
Description
This option determines whether the frame pointer is omitted or kept in leaf functions. It is related to option
-f[no-]omit-frame-pointer
and the setting for that option has an effect on this option.
Consider the following option combinations:
Option Combination
Result
-fomit-frame-pointer -momit-leaf-frame-pointer
or
-fomit-frame-pointer -mno-omit-leaf-frame-pointer
Both combinations are the same as specifying
-fomit-frame-pointer
. Frame pointers are omitted for all routines.
-fno-omit-frame-pointer -momit-leaf-frame-pointer
In this case, the frame pointer is omitted for leaf routines, but other routines will keep the frame pointer.
This is the intended effect of option
-momit-leaf-frame-pointer
.
-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
In this case,
-mno-omit-leaf-frame-pointer
is ignored since
-fno-omit-frame-pointer
retains frame pointers in all routines .
This combination is the same as specifying
-fno-omit-frame-pointer
.
This option is provided for compatibility with gcc.
Alternate Options
None

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804