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]
Other format: [Raw text]

Re: RFC Decrease excessive string literal alignment on IA-32/AMD64


On Wed, Jan 21, 2004 at 04:34:25AM -0500, Jakub Jelinek wrote:
> I don't see anything which could take advantage of alignments bigger than
> word size.

I can only assume someone was thinking it would make it easier
for an sse-based str/memcpy.

> What do you think about either removing those 3 lines altogether
> (allowing string literal suffix merging to be really effective even on
> longer strings), or s/256/BITS_PER_WORD/ (suffix merging would only
> work between strings with equal sizes modulo UNITS_PER_WORD and not between
> really short and long strings), or s/256/BITS_PER_WORD/ and add
> !optimize_size, so that -Os makes the alignment 1?

I think the choice between BITS_PER_WORD and BITS_PER_UNIT (not 1!)
depends on how much merging we can show for your average application.


r~


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