Citerar Warren D Smith <warren....@gmail.com>:
Also, I'm somewhat amazed how it is argued to me that a 9-bit machine
the PDP-10 is
covered by C fine, but yet, C insists on having everything a multiple
of 8 bits with padding bits disallowed, and that too is fine, and both
these facts refute me.
Wrong.
The C language does not insist on multiples of 8.
As far as the C standard is concerned it would be perfectly fine to have
9 bit chars, 18 bit short ints, 27 bit ints, 36 bit long, and 72 bit
long long.
I do not believe GCC has support for any targets like that, but it is
allowed by C.
And, except for unsigned char any and all the integer types can have
some types of padding bits/disallowed bit patterns.
Again, perhaps not in any of the targets that GCC supports, but
allowed by the C standard.