This is the mail archive of the
mailing list for the GCC project.
Re: Two suggestions for gcc C compiler to extend C language (by WD Smith)
Citerar Warren D Smith <firstname.lastname@example.org>:
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.
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
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.