Subject: To LP64? or Not to LP64?
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Charles L. Nelson <charles@embsyspro.com>
List: netbsd-users
Date: 12/11/2006 10:50:25
I agree this has gotten way off topic, so lets fork this thread. Lets all
agree that internally, under most conditions, you get what you created and
asked for. If the compiler knows how to create and manipulate an LP64, then
it will. But externally it is a different story.
CLN
----------------------------------------------------
> -----Original Message-----
> From: Patrick Welche [mailto:prlw1@newn.cam.ac.uk]
> Sent: Monday, December 11, 2006 10:16 AM
> To: Charles L. Nelson
> Cc: netbsd-users@NetBSD.org
> Subject: Re: amd64 stable for production ?
>
>
> On Mon, Dec 11, 2006 at 08:34:17AM -0800, Charles L. Nelson wrote:
> > I think that on some systems it is possible to tell the compiler to use
> > 32-bit addresses and pointers while ints are 32-bits and longs
> are 64-bits.
> > This is the default ABI on many 64-bit machines unless it is overridden.
> >
> > Also, there are only a few 64-bit architectures that can make
> use of true
> > 64-bit addressing. While the compiler may allow 64-scalar
> addressing in the
> > source code, somewhere in the build process, the address is
> usually munged
> > down to the size of the MMU quantum which can be 36-bit, 40-bit
> or 56-bit
> > depending on architecture.
>
> So going further off-topic - what is the size of a "word"? I think it is
> the same as sizeof(void *) so I would get 64, but should I get 36/40/56 ?
>
> Patrick
>
>