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

Re: [f-cpu] calling conventions



On Thu, Jun 06, 2002 at 02:48:57PM +0200, Cedric BAIL wrote:
[...]
> > > personally, I'm wondering if it is really necessary to limit function
> > > argument to r15 instead of r31 or r29 (to be sure to have at least a pair of
> > > temporary registers), in so far as we can consider that all function
> > > arguments not used by a function may be used as temporary registers by this
> > > function...
> I am currently asking the same question with a little variation, why
> not putting in r31 the pointer to parameter allocated stack.

Because that would really be overkill? ;)

We have to stop somewhere, and r15 is an educated guess, based on the
code I've seen so far (and that was a *lot*, believe me).

-- 
 Michael "Tired" Riepe <Michael.Riepe@stud.uni-hannover.de>
 "All I wanna do is have a little fun before I die"
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/