🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #710

sizeof in 36-bits machines

#710
From: Dolf Grunbauer
Date: Thu, 12 Oct 1989 15:17
11 lines
1028 bytes
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@idca.tds.philips.nl
Philips Telecommunication and Data Systems  UUCP ....!mcvax!philapd!dolf
Dept. SSP, P.O. Box 245, 7300 AE Apeldoorn, The Netherlands
Technical Details
Message-ID: <272@ssp1.idca.tds.philips.nl>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!hp4nl!philapd!ssp1!dolf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!hp4nl!philapd!ssp1!dolf
From: dolf@idca.tds.PHILIPS.nl (Dolf Grunbauer)
Newsgroups: comp.std.c
Subject: sizeof in 36-bits machines
Summary: a bit too much ?
Message-ID: <272@ssp1.idca.tds.philips.nl>
Date: 12 Oct 89 15:17:48 GMT
Organization: Philips Telecommunication and Data Systems, The Netherlands
Lines: 11