gcc -O3 will auto remove frame pointer

gcc -O3 will auto remove frame pointer

gcc -O3 will auto remove frame pointer

read count : 7

Comments

  1. Yes, it will automatically “fomit the framepointer”, as it is documented to do.

    This means you can’t take the shortcut of just parsing simple DWARF expressions that always use EBP to get at arguments and local variables.

    You will need to handle full DWARF expressions (but you can add support for them incrementally, of course).