From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Vickers To: Joern Rennecke , egcs@cygnus.com Subject: Re: ridiculous amounts of padding Date: Sun, 31 Jan 1999 23:58:00 -0000 Message-id: <369DE37E.5E3453A0@acorn.com> References: <199901140133.BAA04139@phal.cygnus.co.uk> X-SW-Source: 1999-01n/msg00520.html Joern Rennecke wrote: > > > Even a one-char string copy could be faster done as a word-move on some > > platforms. > > But you may not do that unless you know that you may access the extra data. > So the applicability of that optimization seems to be pretty low. If we've got a one-byte string with 4-byte alignment, the last two bytes in the 4-byte word are unlikely to fall off the end of a memory chip, or or to lie in a different memory protection region :-). Or are you thinking of segment limit registers (Ugh) ?