Intel® Fortran Compiler 17.0 Developer Guide and Reference
Determines whether the frame pointer is omitted or kept in leaf functions.
Linux and macOS: | -momit-leaf-frame-pointer -mno-omit-leaf-frame-pointer |
Windows: | None |
None
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. |
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.
Visual Studio: None
Eclipse: None
Xcode: Optimization > Provide Frame Pointer For Leaf Routines
None