This is the mail archive of the gcc-help@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: 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 


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