Parthasaradhi Nayani <partha_nay...@yahoo.com> wrote: > Later I moved the structure to the top and compiled again but this > time the variables remained in the same old order (the structure > should have occupied the first byte onwards).
The only method to not have the linker reorder your variables is to just use a single variable (per memory section). So, put some kind of an "embracing" struct around all your variables you'd like to have in a particular order, and you'll be done. (This very same issue frequently comes up when accessing EEPROM.) -- 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 AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list