This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Registerized function parameters and related things.
- From: Fabio Alemagna <falemagn at studenti dot unina dot it>
- To: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Tue, 3 Dec 2002 13:36:52 +0100 (CET)
- Subject: Re: Registerized function parameters and related things.
On Tue, 3 Dec 2002, Fergus Henderson wrote:
> Is libbase a global? If so, would GCC's global register variable
> extension help here?
Nope. The libbase is not a global, it's library-specific, each library has
its own and it has to be passed to each library function as parameter.
It's like the "this" pointer for C++ classes.
Doing it the way I described would also allow for _complete_ source
compatibility with AmigaOS sources, because gcc for amigaos 68k supports
registerized parameters. The end goal is to be able to compile the same
source on all the architectures supported by AROS, without modifications.
Fabio Alemagna