Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Nov 1995 09:10:07 -0600
From:      peter@taronga.com (Peter da Silva)
To:        hackers@freebsd.org
Cc:        terry@lambert.org
Subject:   How long is long? Re: SYSCALL IDEAS Was: cvs commit: src/sys/kern sysv_msg.c sysv_sem.c sysv_shm.c
Message-ID:  <199511241510.JAA12572@bonkers.taronga.com>

next in thread | raw e-mail | index | archive | help
Terry Lambert  <terry@lambert.org> wrote:
>That's a bug in the standard in not having mechanisms for obtaining
>sized types.  For a 64 bit int (requiring a 64 bit long), short is
                                             ^^-- 128
>either 16 or 32 bits (undefined) and we lose access to either 32 or
>16 bit types (respectively).

What architecture requires a 64 bit (int)?

IMHO, DEC did exactly the right thing making int 32 bits and long 64 bits,
given the history of the language, but IMHO the original BSD port to the
VAX should have done the same thing, rather than keeping it 32 bits for
easier porting of PDP-11 code.

Long doesn't and shouldn't mean "32 bits".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511241510.JAA12572>