Port-alpha archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: size of int



On Mon, Oct 28, 2024 at 08:15:55AM -0700, Jason Thorpe wrote:
> 
> > On Oct 28, 2024, at 6:15 AM, Greg Troxel <gdt%lexort.com@localhost> 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.


Home | Main Index | Thread Index | Old Index