Joerg Wunsch wrote: > Josef Eisl <zaps...@zapster.cc> wrote: > >> - In which order is the return address saved on the stack? > > This is the area where the AVR is big-endian (as Georg-Johann already > mentioned). To add to the confusion, the saved address could have > bits set that are not part of the PC on that device, making it really > hard to spot when looking at a stack dump. This is e.g. known for the > ATmega16. > > Keep in mind that the return address is stored on the stack as a word > address, while the GNU tools use byte addressing for everything. >
My thanks to both of you. It is hard to figure these things out since understanding a stack dump is more difficult than reading a assembler listing. Thanks again! Josef _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list