still using frame pointer when compiling with -fomit-frame-pointer

Richard Henderson rth@redhat.com
Wed Jul 2 18:26:00 GMT 2003


On Wed, Jul 02, 2003 at 06:29:05PM +0200, Johan Rydberg wrote:
> For a little project of mine I use the -fomit-frame-pointer flag
> to GCC, to let it know that it should not use %ebp (since it will
> be clobbed in runtime generated code).

Then you are wrong.  If you use -fomit-frame-pointer, the 
compiler will *still* expect %ebp to be unchanged after a call.


r~



More information about the Gcc mailing list