sizeof in 36-bits machines

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Sat Oct 14 06:47:13 AEST 1989


In article <272 at ssp1.idca.tds.philips.nl>, dolf at idca.tds.PHILIPS.nl (Dolf Grunbauer) writes:
|  Assuming a 36-bit integer (e.g. DEC-10 :-) and 8-bit bytes, what should
|  `sizeof(int)' return: 4, 4.5 or 5 ?

  The answer is that you have made contradictory assumptions. The size
of a byte on a 36 bit machine is 9 bits (at least on the Honeywell is
was).

  There ARE machines on which the size of a word in bits is not a
multiple of the hardware addressable byte, but all of the 36 bit
machines I've used did 9 bit bytes. There may well be exceptions.
-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon



More information about the Comp.std.c mailing list