This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Stack frame question on x86 code generation
- From: Gang-Ryung Uh <uh18104 at yahoo dot com>
- To: James E Wilson <wilson at specifixinc dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Apr 2005 19:30:40 -0700 (PDT)
- Subject: Re: Stack frame question on x86 code generation
You are right! Thanks!
Now, it makes sense.
Best regards,
--- James E Wilson <wilson@specifixinc.com> wrote:
> On Mon, 2005-04-25 at 18:22, Gang-Ryung Uh wrote:
> > of the current development gcc version is not
> aligned
> > with 16 bytes with -40. How you can make it 16
> bytes
> > aligned with -8?
>
> push/push/subl -40 gives -48 which is 16-byte
> aligned. Or perhaps that
> is call/push/subl -40 which gives the -48. I'm not
> sure how x86 call
> insns work.
>
> subl -8/push/push gives -16 which is 16 byte
> aligned.
>
> You can step through code in gdb with display/x $sp
> if you want to
> follow this, and see what the real stack pointer
> value is.
> --
> Jim Wilson, GNU Tools Support,
> http://www.SpecifixInc.com
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com