Re: size of int
"Jonathan A. Kollasch" <[email protected]> Mon, 28 Oct 2024 10:34:01 -0500
| Newsgroups | gmane.os.netbsd.ports.alpha |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Oct 28, 2024 at 08:15:55AM -0700, Jason Thorpe wrote: > > > On Oct 28, 2024, at 6:15 AM, Greg Troxel <[email protected]> wrote: > > > > (I'm not subscribed because I haven't had an alpha in about 15-20 > > years.) > > > > I made a comment in a random upstream bugtracker about code that assumed > > sizeof(int) was 4. > > > > My memory (from the late 90s) is that on alpha, C is ILP64, with 64-bit > > ints, not just longs and pointers. But I was questioned about this by a > > fellow NetBSD developer, who pointed out > > > > https://wiki.netbsd.org/ports/alpha/ > > > > that said ints are 32. > > > > > > I wonder if I am confused, or if the alpha world started out ILP64 and > > later changed to LP64. If the latter, it would be good to explain that > > on the wiki page. > > To my knowledge, all Unix ABIs for Alpha are I32, LP64. This includes OSF/1 / Digital Unix. I don’t know of any Alpha ABI where ints were 64-bit. > I have a very vague recollection that maybe the Alpha-based Cray T3E had something unusual about its ABI, but not sure if it was ILP64 or what.