Local variable memory allocation

Michael Matz matz@suse.de
Tue Sep 16 16:07:00 GMT 2003


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.



More information about the Gcc mailing list