[Q] avr-gcc and calling convention

From: 42Bastian Schick (bastian42_at_yahoo.com)
Date: 01/24/05

Date: Mon, 24 Jan 2005 06:10:29 GMT


I am starting to port our RTOS to AVR using avr-gcc ( later surely
IAR, ImageCraft).

Currently I am confused about the calling convention. The AVR-lib
document says:

r2-r17 are callee saved
r18-27 are caller saved
r25-r8 are the parameters left to right

Does this mean, I must preserve the parameter values in r17-r8 ?


Do not email to bastian42@yahoo.com, it's a spam-only account :-)
Use <same-name>@epost.de instead !