Default stack alignment on x86-64, fedora 11

Ian Lance Taylor iant@google.com
Thu Aug 27 20:17:00 GMT 2009


Rohit Garg <rpg.314@gmail.com> writes:

>> You should be able to use __attribute__ ((aligned (16))) to make this
>> happen.
> I knew that, it's just that I wanted to minimize cache pollution
> because my app thrashes cache badly. My bigger question is if stack is
> 16 byte aligned by default on modern 64 bit distributions?

Yes, it is.

Ian



More information about the Gcc-help mailing list