3 ms·
At this point in time, I really don’t think there is a replacement for C in embedded systems. It’s been a while since I’ve looked, but the rust frameworks for
by Zamiel_Snawley 3y ago
At this point in time, I really don’t think there is a replacement for C in embedded systems.
It’s been a while since I’ve looked, but the rust frameworks for STM32 are so much harder to use for directly interacting with memory mapped registers and DMA.
- ttfkam 3y agoZig. Nim.
- Zamiel_Snawley 3y agoNeither are memory safe. Ada/SPARK would be another option but it doesn’t get any press nowadays, and I doubt there is much support from MCU vendors given that they don’t support the trendy languages.
- ttfkam 3y agoNeither have the safety of Rust, but are far less prone to memory gaffes than C. They make for a pragmatic, usable middle ground.
- pyjarrett 3y agoAda is used quite often in embedded systems. - https://blog.adacore.com/ada-on-any-arm-cortex-m-device-in-just-a-couple-minutes https://blog.adacore.com/ada-on-any-arm-cortex-m-device-in-j... - https://github.com/AdaCore/Ada_Drivers_Library https://github.com/AdaCore/Ada_Drivers_Library