[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Possible incorrect usage of STACKALIGN in kern_exec
On Tue, Jan 24, 2012 at 04:53:53PM -0500, Matthew Mondor wrote:
> It's in the x86-64 case that stack frames are 16-byte aligned, with
> arrays larger than 16 bytes also needing to be 16-byte aligned
> (possibly including the stack)...
Depending on when you look, the stack frame is either 8 mod 16 or 0 mod
16. Arrays don't have any special alignment, but it is the
responsibility of the compiler to add padding for on-stack arrays as
needed to ensure the alignment of each component.
Main Index |
Thread Index |