Registerized function parameters and related things.
Fergus Henderson
fjh@cs.mu.OZ.AU
Sun Dec 1 20:52:00 GMT 2002
On 02-Dec-2002, Fabio Alemagna <falemagn@studenti.unina.it> wrote:
> >
> > One of these needs, being AROS an AmigaOS clone, would be to be able to
> > tell the compiler to put certain function arguments in certain CPU
> > registers.
Why do you want/need that?
I suppose on m68k you might need it for backwards binary compatibility with
AmigaOS. But why do you need it for non-68k systems?
> > First, a little background: so far AROS has dealt with the registerized
> > parameters issue by using some special macros, which would expand to
> > function declarations/definitions which would use registerized parameters
> > on machines where this feature is available (so far only
> > m68k-amigaos-gcc), and to normal function declarations/definitions (with
> > arguments on the stack - or whatever other convention the underlying
> > machine uses) in case this feature is absent.
What's wrong with that solution?
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
More information about the Gcc
mailing list