This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Registerized function parameters and related things.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]