What platforms have something other than 8-bit char?

前端 未结 12 1500
再見小時候
再見小時候 2020-11-22 00:31

Every now and then, someone on SO points out that char (aka \'byte\') isn\'t necessarily 8 bits.

It seems that 8-bit char is almost universal. I would h

12条回答
  •  我在风中等你
    2020-11-22 01:13

    A few of which I'm aware:

    • DEC PDP-10: variable, but most often 7-bit chars packed 5 per 36-bit word, or else 9 bit chars, 4 per word
    • Control Data mainframes (CDC-6400, 6500, 6600, 7600, Cyber 170, Cyber 176 etc.) 6-bit chars, packed 10 per 60-bit word.
    • Unisys mainframes: 9 bits/byte
    • Windows CE: simply doesn't support the `char` type at all -- requires 16-bit wchar_t instead

提交回复
热议问题