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: James E Wilson <wilson at specifixinc dot com>
- To: Gang-Ryung Uh <uh18104 at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Apr 2005 18:45:36 -0700
- Subject: Re: Stack frame question on x86 code generation
- References: <20050426012249.48121.qmail@web50308.mail.yahoo.com>
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