This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Two suggestions for gcc C compiler to extend C language (by WD Smith)


Citerar Warren D Smith <warren.wds@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]