| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
| Message-ID: | <000401c1b360$3cb1c480$34e2a0c8@rjo.virtua.com.br> |
| From: | "Pedro Izecksohn" <izecksohn AT yahoo DOT com> |
| To: | <djgpp AT delorie DOT com> |
| References: | <000a01c1b296$f2b0dc00$34e2a0c8 AT rjo DOT virtua DOT com DOT br> <3c66fcd7 DOT sandmann AT clio DOT rice DOT edu> |
| Subject: | Re: Re: Assembly Question: |
| Date: | Mon, 11 Feb 2002 21:56:45 -0300 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 6.00.2600.0000 |
| Disposition-Notification-To: | "Pedro Izecksohn" <izecksohn AT yahoo DOT com> |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
| Reply-To: | djgpp AT delorie DOT com |
It explains line 16, but not line 15. Because andl $-16,%esp is enough to align the stack on a 16-byte boundary. ??? ----- Original Message ----- From: "Charles Sandmann" <sandmann AT clio DOT rice DOT edu> Newsgroups: comp.os.msdos.djgpp To: <djgpp AT delorie DOT com> Sent: Sunday, February 10, 2002 11:05 PM Subject: Re: Assembly Question: > > gcc makes the following .S code: (Without the lines numbers.) > > > 12 _main: > > 13 pushl %ebp > > 14 movl %esp, %ebp > > 15 subl $8, %esp > > 16 andl $-16, %esp > > > What is the purpose of the lines 15 and 16 ? > > I believe it is to align the stack on a 16-byte boundary for better > performance. > > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |