4 ms·
These kinds of issues are readily seen when writing low-level code that runs close to the hardware: network packet handling, device drivers, cross compilers, e
by thesuperbigfrog 5y ago
These kinds of issues are readily seen when writing low-level code that runs close to the hardware: network packet handling, device drivers, cross compilers, etc.
When porting these kinds of code to different / newer architectures it immediately becomes apparent if the code was written with portability in mind or not.
These Ada features seem really nice for low-level code portability. Do any other languages have similiar features?
- ostenning 5y agoRust allows portability providing that the programmer is using a HAL that implements the “embedded-hal” library. Things like SPI, I2C etc can be exposed by traits that libraries can then use. So you could have one LCD display library that can easily run on multiple microcontrollers. But the support is still expanding slowly, I believe stm32 chips are the main focus at the moment