This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
stack alginment code
- From: xiaolei zhang <maths at 21cn dot com>
- To: Gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Thu, 12 May 2005 23:53:22 +0800
- Subject: stack alginment code
- Reply-to: maths at 21cn dot com
hello:
i know the codes below is for alignment purpose,
----------------------------------------------
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
----------------------------------------------
but I think just ``andl $-16, %esp'' is enough, why ``subl $8, %
esp'' first?
thanks