Re: size of int
Johnny Billquist <[email protected]> Mon, 28 Oct 2024 16:04:30 +0100
| Newsgroups | gmane.os.netbsd.ports.alpha |
|---|---|
| Organization | SoftJAR AB |
| Message-ID | <[email protected]> |
The memory of the pain when the switch from 16 bits to 32 bits still
lingers 40 years later... :D
I guess int is now going to be 32 bits in all eternity.
Johnny
On 2024-10-28 15:49, Martin Husemann wrote:
> On Mon, Oct 28, 2024 at 09:55:37AM -0400, Greg Troxel wrote:
>> Thanks. I guess I'm just confused about NetBSD/gcc ABI then. Maybe it
>> was VMS or Ultrix, or maybe I'm totally hallucinating.
>
> > ./tools-10/bin/alpha--netbsd-gcc -dM -E - < /dev/null | fgrep __SIZEOF
> #define __SIZEOF_INT__ 4
> #define __SIZEOF_LONG__ 8
> #define __SIZEOF_LONG_DOUBLE__ 8
> #define __SIZEOF_SIZE_T__ 8
> #define __SIZEOF_WINT_T__ 4
> #define __SIZEOF_POINTER__ 8
> #define __SIZEOF_PTRDIFF_T__ 8
> #define __SIZEOF_FLOAT__ 4
> #define __SIZEOF_SHORT__ 2
> #define __SIZEOF_INT128__ 16
> #define __SIZEOF_WCHAR_T__ 4
> #define __SIZEOF_DOUBLE__ 8
> #define __SIZEOF_LONG_LONG__ 8
>
>
> AFAIR it always has been that way in NetBSD.
>
> Martin
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: [email protected] || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol