Re: size of int
Jason Thorpe <[email protected]> Mon, 28 Oct 2024 08:15:55 -0700
| Newsgroups | gmane.os.netbsd.ports.alpha |
|---|---|
| Message-ID | <[email protected]> |
> 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. -- thorpej