This is the mail archive of the gcc@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]

Re: Aligned Strings


Hi,
the gcc way is to align strings longer than 32bytes to 32bytes.
This way the string occupies fewer cache lines and is processed faster,
avoiding data chache misses,  while the waste should be still acceptable,
as majority of strings are very small (less than 32bytes) or relativly large
(and then the extra ~16bytes of alignment is not so critical).

Honza


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