3 ms·
C does require that int is at least 16 bits (e.g., INT_MAX has to be at least 32767).
by jcranmer 3y ago
C does require that int is at least 16 bits (e.g., INT_MAX has to be at least 32767).
- SAI_Peregrinus 3y agoISO C requires that. PIC C doesn't. There aren't that many C dialects, but there are a few.
- Findecanor 3y agoYou can often override that to be 8-bit on compilers for 8-bit microcontrollers, on which C's integer promotion rules to 16 bits can be costly. I'd think that while a good compiler should be able to optimise those away, even a good programmer might not always write code that provides the compiler with the hints to do that.