Are there machines, where sizeof(char) != 1, or at least CHAR_BIT > 8?

后端 未结 3 1933
梦毁少年i
梦毁少年i 2020-11-22 02:33

Are there machines (or compilers), where sizeof(char) != 1?

Does C99 standard says that sizeof(char) on standard complianc

3条回答
  •  死守一世寂寞
    2020-11-22 03:36

    PDP-10 and PDP-11 was.

    Update: there like no C99 compilers for PDP-10.

    Some models of Analog Devices 32-bit SHARC DSP have CHAR_BIT=32, and Texas Instruments DSP from TMS32F28xx have CHAR_BIT=16, reportedly.

    Update: There is GCC 3.2 for PDP-10 with CHAR_BIT=9 (check include/limits.h in that archive).

提交回复
热议问题