anyone know if GCC has a flag to cause the compiler to avoid lots of load 0 into address high bytes on the small memory AVRs? Lots of flash memory words are wasted on loading high bytes whereas the memory can be addressed in one byte. The high byte register could be cleared and left 0, or at least, the compiler could generate one-word instructions to clear it, knowing the chip type is, say, a 2313.
I hope I haven't stuck my foot in my mouth again on this.