Re: Curious about gcc v4.1.2, x86 assembly, and stack overallocation

2008-05-27 Thread Andrew Haley
gdb guy wrote: > If I have the following code: > > > Basically I'm just curious to understand why gcc adds this extra space. The stack pointer is always 16-aligned. Does that help? Andrew.

Curious about gcc v4.1.2, x86 assembly, and stack overallocation

2008-05-27 Thread gdb guy
If I have the following code: struct bob{ int a; char b[8]; int c; }; struct bob barker; ... void sub1(unsigned int size){ int someflag=0; struct bob dole; memcpy(&dole.b,&barker.b,size); } let's say I call the code as sub(8) (the code is intentiona