Exotic architectures the standards committees care about

后端 未结 7 1100
时光说笑
时光说笑 2020-11-22 01:23

I know that the C and C++ standards leave many aspects of the language implementation-defined just because if there is an architecture with other characteristics, it would b

7条回答
  •  天命终不由人
    2020-11-22 01:57

    I found this link listing some systems where CHAR_BIT != 8. They include

    some TI DSPs have CHAR_BIT == 16

    BlueCore-5 chip (a Bluetooth chip from Cambridge Silicon Radio) which has CHAR_BIT == 16.

    And of course there is a question on Stack Overflow: What platforms have something other than 8-bit char

    As for non two's-complement systems there is an interesting read on comp.lang.c++.moderated. Summarized: there are platforms having ones' complement or sign and magnitude representation.

提交回复
热议问题