avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] AVR C-ABI


From: Michael Hennebry
Subject: Re: [avr-chat] AVR C-ABI
Date: Wed, 7 Jan 2009 11:43:38 -0600 (CST)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Wed, 7 Jan 2009, Joerg Wunsch wrote:

There's no more available than what you have found there.
(Documentation) patches are welcome!

Arguments are normally passed in registers, down to r8.  Excess
arguments that don't fit into that many registers are passed on the
stack.  Variable arguments are always passed on the stack.  structs
are returned by reference, where the caller allocates the space, and
passes the address down to the callee (IIRC this address is passed as
the first argument to the callee).

That is not in the FAQ.
Not having returned structs between C and assembly,
I'd never had occasion to check.

Likewise, it doesn't state the order in which stack arguments are pushed.
Also something I haven't needed to know.
Something I don't know.

--
Michael   address@hidden
"Pessimist: The glass is half empty.
Optimist:   The glass is half full.
Engineer:   The glass is twice as big as it needs to be."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]