sizeof in 36-bits machines

Karl Heuer karl at haddock.ima.isc.com
Tue Oct 17 11:24:34 AEST 1989


In article <11300 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
>[a 36-bit machine having 8-bit char would be] allowed ONLY if the "extra"
>bits are also skipped in accessing integer, etc. data.  In other words, the
>implementor need not use all the bits in a word, but if he's going to ignore
>some of them in the char array context, he must ignore them also in other
>contexts.  It would seem to be a pretty dumb implementation decision to do
>that.

I dunno, it might be useful for porting ATWAV code to a PDP-10.

>>Alternatively, you could just make sizeof(int)=sizeof(char)=1

It remains to be seen whether this is legal, and if so, what happens when the
input stream contains a bit pattern that compares equal to the value of EOF.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint
#define ATWAV All-The-World's-A-Vax.



More information about the Comp.std.c mailing list