News for hackers. Stuff that matters.
Re:Blech Programming Language by Athas on Friday September 18, 2020 @09:17AM (#24516348)
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.
Re:Blech Programming Language by fanf2 on Friday September 18, 2020 @09:51AM (#24516756)
That’s what int_least8_t or int_fast8_t are for

https://en.wikipedia.org/wiki/C_data_types#stdint.h

Re:Blech Programming Language by fjg on Friday September 18, 2020 @10:40AM (#24517348)
You 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/blech... So you can adopt to your needs on your platform.