Dave N6NZ <[email protected]> wrote: > Well, avr-gcc thinks the whole world is byte addressable.
Rather: the GNU tools simply use byte addressing, regardless of whether the target address space alignment is 1-byte, 2-byte, 4-byte, or 8-byte. Many RISC CPUs used to require 32-bit aligned access already 15 years ago, yet their tools always use byte addressing. The AVR case is particularly funny since while the flash ROM is described as being addressed in entities of 16 bits, the LPM instruction in turn addresses it in units of 8 bits, so there's no such thing as a "flash address" in the AVR Tools, but you have to ask back whether this flash address is meant for instruction or data access in order to know which datum it is addressing... (Also, there's an assymetry between the LPM and SPM instructions here, you need two LPMs in order to read back the result of one SPM.) -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-GCC-list mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
