This is the mail archive of the gcc-help@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: Curious about gcc v4.1.2, x86 assembly, and stack overallocation


gdb guy:

> Basically I'm just curious to understand why gcc adds this extra space.

The effect of a "packed" or "align" attribute accounts for the size of 
a struct, but the stack allocation is, of course, system dependent.  You
would have to look at the code.

Robert.

-- 
Ctalk Home Page: http://www.ctalklang.org


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