On 02/21/2011 15:38, Joerg Sonnenberger wrote:
That's a major difference. The Linux people decided a while ago that
stack alignment should be 16 Byte. GCC effectively forces that down
everyone's throat because until at least GCC 4.2 or 4.3, it can't
correctly realign the stack and just fails miserable. I would be
surprised if it was a conscious decision for the Solaris either.

On the other hand, 16 byte alignment allows for some extra optimizations. For example many SIMD instructions like movdqa can only be used on 16 byte aligned values. That's why linux probably decided to change this.

Yuri
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[email protected]"

Reply via email to