Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: MSP432: Forcing all int's to be 16bit (short)

$
0
0
[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

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>