This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 16 Jul 2013 15:33:59 +0000
- Subject: [Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?
- Auto-submitted: auto-generated
- References: <bug-57908-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57908
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Yann Droneaud from comment #8)
> Could someone comment on which optimisation is achieved by aligning such
> small arrays ?
The simple answer is so each array is more likely to fit into a cache line:
One use of this macro is to increase alignment of medium-size
data to make it all fit in fewer cache lines. */