Re: register indirect addressing for global variables on powerpc

2013-01-14 Thread David Edelsohn
On Mon, Jan 14, 2013 at 2:00 AM, Thomas Baier wrote: > Dear list, > > I've just subscribed to the list and I hope this is the right place for > the following question. > > The operating system I'd like to use gcc for (OS-9, for the curious) > requires an ABI, where global variables are only access

Re: register indirect addressing for global variables on powerpc

2013-01-14 Thread Peter Bergner
On Mon, 2013-01-14 at 08:00 +0100, Thomas Baier wrote: > The operating system I'd like to use gcc for (OS-9, for the curious) > requires an ABI, where global variables are only accessed through > register indirect addressing. On the powerpc platform, r2 is used for > indirect addressing. There is a

Re: register indirect addressing for global variables on powerpc

2013-01-14 Thread Andrew Pinski
On Mon, Jan 14, 2013 at 10:03 AM, Eric Botcazou wrote: >> The Mac OS 9 ABI is very similar to the AIX ABI. So you should be >> able to start with the AIX ABI and go from there. > > Are you sure that you're talking about the same OS-9 as Thomas here? Oh OS-9. Anyways it does sound more like the

Re: register indirect addressing for global variables on powerpc

2013-01-14 Thread Eric Botcazou
> The Mac OS 9 ABI is very similar to the AIX ABI. So you should be > able to start with the AIX ABI and go from there. Are you sure that you're talking about the same OS-9 as Thomas here? -- Eric Botcazou

Re: register indirect addressing for global variables on powerpc

2013-01-14 Thread Andrew Pinski
On Sun, Jan 13, 2013 at 11:00 PM, Thomas Baier wrote: > Dear list, > > I've just subscribed to the list and I hope this is the right place for > the following question. > > The operating system I'd like to use gcc for (OS-9, for the curious) > requires an ABI, where global variables are only acces

register indirect addressing for global variables on powerpc

2013-01-14 Thread Thomas Baier
Dear list, I've just subscribed to the list and I hope this is the right place for the following question. The operating system I'd like to use gcc for (OS-9, for the curious) requires an ABI, where global variables are only accessed through register indirect addressing. On the powerpc platform,