8 bit characters?

Manuel M T Chakravarty chak@cse.unsw.edu.au
Fri, 09 Aug 2002 15:48:07 +1000 (EST)


George Russell <ger@tzi.de> wrote,

> Manual wrote
> [snip]
> > As I understand it, in ANSI C, the only freedom that an
> > implementation has in choosing a concrete representation for
> > "char" is to decide whether it is signed or unsigned.  In
> > any case, it is going to be an 8 bit entity.
> [snip]
> 
> This is false.  Look at section 5.2.4.2.1
>    http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.htm
> This says only "Their  implementation-defined  values shall be             
> equal or greater in  magnitude  (absolute  value)  to  those             
> shown, with the same sign."  Thus CHAR_BIT must be at least 8.
> It may be greater than 8.

Ok, I am convinced :-)

Manuel