Registerized function parameters and related things.
Fabio Alemagna
falemagn@studenti.unina.it
Tue Dec 3 04:50:00 GMT 2002
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
More information about the Gcc
mailing list