integer types, sys calls, and stdio

Ron Natalie ron at BRL-TGR
Tue Jan 15 07:12:14 AEST 1985


Yes we had the same problem with the denelcor HEP.

It has an inate 64 bit wordsize which you'd like to be an int.  Long is
also equal to int since the machine doesn't bother with anything great
than 64 bits of integer (and since long cant be smaller than int).  We
picked short to be 16 bits for compatibility and defined (gack) a mystery
type called _int32 for people who really want the 32 bit things.

_int32 is frequently typedef'd to "medium."  I wanted to call the short longs.

With eight byte ints you can make the optimzation that
	uid = username ^ 'root\0\0\0\0'

Eh?

-Ron

Speaking of ANSI standard sizes...there Fortran compiler had to be reworked
because according to the spec, DOUBLE must occcupy EXACTLY twice
as much space as REAL.  There is also a hard relationship between INTEGER
and REAL.  Yuch.

-Ron



More information about the Comp.unix.wizards mailing list