sizeof in 36-bits machines

Dolf Grunbauer dolf at idca.tds.PHILIPS.nl
Fri Oct 13 01:17:48 AEST 1989


Assuming a 36-bit integer (e.g. DEC-10 :-) and 8-bit bytes, what should
`sizeof(int)' return: 4, 4.5 or 5 ?
I know 4.5 is not valid, because pANSI states that the type of `sizeof' is
`size_t' (unsigned integral), but on the other hand 4 is too small and
5 too big.
Or is it simply impossible to make a compliant ANSI C compiler for such
machine/memory configuration ?
-- 
Dolf Grunbauer          Tel: +31 55 432764  Internet dolf at idca.tds.philips.nl
Philips Telecommunication and Data Systems  UUCP ....!mcvax!philapd!dolf
Dept. SSP, P.O. Box 245, 7300 AE Apeldoorn, The Netherlands



More information about the Comp.std.c mailing list