-fomit-frame-pointer

IDE Equivalent

GCC C Compiler > Optimization > Omit frame pointers (-fomit-frame-pointer)

Syntax

-fomit-frame-pointer

Arguments

NONE

Default

ON

for -O, -Og, -O1, -O2, -O3, -Ofast

OFF

for -O0, -Os

Description

Allows to not keep the frame pointer in a register for functions that do not need one, which avoids the instructions to save, set up, and restore frame pointers and makes an extra register available in many functions.

Using this switch increases the code size in some applications, while in others it reduces the code size. Try to turn on/off this switch to find the best option for your application.

Note

Using this switch can make debugging more difficult.

For more complete information about compiler optimizations, see our Optimization Notice.