This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/57908] alignment of arrays allocated stack on amd64/x86_64: 16 bytes ?


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]