This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Unomitted frame pointers


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]