This is the mail archive of the
mailing list for the GCC project.
Re: Aligned Strings
- To: pfk at fuchs dot offl dot uni-jena dot de, gcc at gcc dot gnu dot org, ak at suse dot de
- Subject: Re: Aligned Strings
- From: Jan Hubicka <jh at suse dot cz>
- Date: Sun, 26 Aug 2001 17:31:13 +0200
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).