This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]