Re: 32 bit pointers on a 64 bit system

2013-03-06 Thread David McQuillan
Thanks for that about the MIPS and PA. Gosh now I feel rather silly, I remember doing something like this years and years ago in a company I was in at the time with MIPS and PowerPC but it was roll our own rather than gcc. Parameters were passed on stack at the size they were rather than widene

Re: 32 bit pointers on a 64 bit system

2013-03-06 Thread Jeff Law
On 03/06/2013 07:21 AM, paul_kon...@dell.com wrote: On Mar 6, 2013, at 7:38 AM, David McQuillan wrote: Have there been any implementations of gcc for a 32 bit pointer system where the registers are 64 bits long? MIPS (N32 ABI, and if you want, also O64) is another example. The PA2.0 chips w

Re: 32 bit pointers on a 64 bit system

2013-03-06 Thread Paul_Koning
On Mar 6, 2013, at 7:38 AM, David McQuillan wrote: > Have there been any implementations of gcc for a 32 bit pointer system where > the registers are 64 bits long? MIPS (N32 ABI, and if you want, also O64) is another example. paul

Re: 32 bit pointers on a 64 bit system

2013-03-06 Thread Andreas Schwab
David McQuillan writes: > Have there been any implementations of gcc for a 32 bit pointer system > where the registers are 64 bits long? x32. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something c

Re: 32 bit pointers on a 64 bit system

2013-03-06 Thread Jonathan Wakely
On 6 March 2013 12:38, David McQuillan wrote: > Have there been any implementations of gcc for a 32 bit pointer system where > the registers are 64 bits long? Yes, the new x32 ABI for x86_64, see https://sites.google.com/site/x32abi/ and http://lwn.net/Articles/456731/

32 bit pointers on a 64 bit system

2013-03-06 Thread David McQuillan
Have there been any implementations of gcc for a 32 bit pointer system where the registers are 64 bits long? I was looking at AArch64 and wondering about whether it mightn't be better for a 32 bit system than AArch32 if all the pointers were 32 bit, and as far as the ABI is concerned half the