On Mon, Jul 1, 2013 at 1:00 PM, Andrew Haley <aph@xxxxxxxxxx> wrote: > On 07/01/2013 06:43 AM, vijay nag wrote: >> I just RTFM pages of gcc and I see that -Os will enable >> -fomit-frame-pointer. Is it possible to not omit frame-pointer while >> the optimization >> level is -O1 ? > > Please don't top-post in this list. > > Why don't you just try -fno-omit-frame-pointer and tell us what the > result is? > > Andrew. > Yes, it works and we can also change the default behavior by configuring GCC with --enable-frame-pointer. Thanks.