You copied the Doc URL to your clipboard.

ARM Compiler armclang Reference Guide : -fomit-frame-pointer, -fno-omit-frame-pointer

-fomit-frame-pointer, -fno-omit-frame-pointer

Omits the storing of stack frame pointers during function calls.

The -fomit-frame-pointer option instructs the compiler to not store stack frame pointers if the function does not need it. You can use this option to reduce the code image size.

The -fno-omit-frame-pointer option instructs the compiler to store the stack frame pointer in a register. In AArch32, the frame pointer is stored in register R11. In AArch64, the frame pointer is stored in register X29. The register that is used as a frame pointer is not available for use as a general-purpose register. It is available as a general-purpose register if you compile with -fomit-frame-pointer.

Default

The default is -fno-omit-frame-pointer.