[quote user="Ilmars"] Any1 know system where char is not 8 bits? - just curious. [/quote] We (IAR) used to produce a development environment for a DSP a few years ago. The assembler language only supported accessing 16 bit objects, so we decided to make "char" 16 bits. All in all, it worked. However, when using such an environment it is obvious that a lot of real-world C programs take a lot for granted. For example, not many expect "sizeof(short)" to be "1" (sizeof does not return the byte size, it returns the size relative to the size of a char). -- Anders Lindgren, IAR Systems
↧