Time for 64-bit longs?

jtr485 at umich.UUCP jtr485 at umich.UUCP
Sun Feb 1 13:25:56 AEST 1987


In article <291 at mtxinu.UUCP>, ed at mtxinu.UUCP writes:
> >Has anyone bit the bullet and gone to 64-bit longs?
> The problem is not that the VAX code assumes int == long (it often
> does make that assumption, but those are bugs) but that C defines
> only two sizes of integer: long and short.  Int may be either,
> depending on the implementation, but it must be one or the other.
NO!  Int does not have to be short or long.  It just has to be at least
as large as short and at least as small as long.  So you can have
8 bit short; 16 bit int; 32 bit long	/* some 68000 C compilers have this */
or
16 bit short; 32 bit int; 64 bit long	/* reasonable for a vax */
> Ed Gould                    mt Xinu, 2560 Ninth St., Berkeley, CA  94710  USA



More information about the Comp.lang.c mailing list