Don't store the frame pointer in a register for functions that don't need one, thus omitting the code to store and retrieve the address as well as making another register available for general use. This flag is automatically set for all levels of -O optimization, but only if the debugger can be run without a frame pointer. If the debugger cannot be run with this setting you will have to set it explicitly. Some platforms have no frame pointer and this flag will have no effect. The default is -fno-omit-frame-pointer.


Was this article helpful?

0 0

Post a comment