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 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


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