This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Local variable memory allocation
- From: Michael Matz <matz at suse dot de>
- To: Darragh O'Brien <dobrien at computing dot dcu dot ie>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 16 Sep 2003 18:04:09 +0200 (CEST)
- Subject: Re: Local variable memory allocation
Hi,
On Tue, 16 Sep 2003, Darragh O'Brien wrote:
> Why 108?
Alignment. Per default the stack is aligned by 0x10. Return address and
base pointer take 8 away, hence the frame begin has to be adjusted by
another 8. If you don't want that try on x86 you can use
-mpreferred-stack-boundary=2 (or -Os).
Ciao,
Michael.