What does the FreeBSD/i386 ABI say about stack alignment?

Ryan Stone rysto32 at gmail.com
Fri Jan 14 12:11:52 UTC 2011


On Fri, Jan 14, 2011 at 3:52 AM, Peter Blok <peter.blok at bsd4all.org> wrote:
> Hi,
>
> I¹m probably missing something but if you require a stack variable to be
> aligned why not use a type attribute like __attribute__ ((aligned (8)))
>
> Peter

In my case I had no stack variable that required alignment.  gcc
issued some movdqa instructions in order to initialize a memory region
on the stack to all-zeros.


More information about the freebsd-hackers mailing list