This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unomitted frame pointers
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: "Sam Lauber" <sam124 at operamail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 11 Dec 2004 18:00:12 +0100
- Subject: Re: Unomitted frame pointers
- References: <20041211161501.E0D6723CE8@ws5-3.us4.outblaze.com>
> 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