4 ms·
There is no guarantee that the hardware supports 8-bit numbers natively, and emulating them might be expensive. For embedded programming, it is sometimes usefu
by Athas 6y ago
There is no guarantee that the hardware supports 8-bit numbers natively, and emulating them might be expensive. For embedded programming, it is sometimes useful to ask for a type that is at least 8 bits, but may be bigger.
- fanf2 6y agoThat’s what int_least8_t or int_fast8_t are for https://en.wikipedia.org/wiki/C_data_types#stdint.h https://en.wikipedia.org/wiki/C_data_types#stdint.h
- fjg 6y agoYou can choose to use int_least_8_t or int_fast8_t as the implementation type blc_int8 of Blech type int8 for code generation https://github.com/boschresearch/blech/blob/master/src/blechc/include/blechconf.h https://github.com/boschresearch/blech/blob/master/src/blech... So you can adopt to your needs on your platform.