Unomitted frame pointers

Eric Botcazou ebotcazou@libertysurf.fr
Sat Dec 11 17:00:00 GMT 2004


> Then why does -fomit-frame-pointer work on x86 at all? Then that option to
> omit a frame pointer shall be omitted ;). At least on x86.

Do the following experiment: rename your function 'my_main', recompile with -S 
-fomit-frame-pointer and inspect the assembly code.

> Why does it have to dynamically align the frame pointer? And _I'm_ not using
> an old 8086, I've got a Pentium III! 

Precisely because you're using a modern x86 processor, which features SSE 
instructions and the likes.

-- 
Eric Botcazou



More information about the Gcc mailing list