C++ In Deeply Embedded Systems
summary
A large hearing‑aid firmware running on an ARM Cortex‑M0 (≈5 MHz, ~128 KB ROM, ~144 KB RAM) is ported to C++14 over three years with dozens of product releases and no downtime; exceptions and RTTI stay disabled and ARM Compiler 6 (Clang backend) is used. STL containers are avoided; intrusive Boost containers and custom fixed‑size map/vector replace dynamic allocation. A template wrapper for error codes replaces repeated branches and saves kilobytes of code, while simple classes and constexpr give zero-overhead safety.
AI-written summary · about
chapters (12)
- 0:00Introduction and myths
- 3:25Real-world embedded C++ transition
- 6:00Compiler and chip selection
- 7:48Why use C++ in embedded
- 10:39Macros vs type safety
- 13:55Compile-time optimizations
- 16:49ROM/RAM patching with C++
- 19:45C++ overhead analysis
- 24:25STL limitations in embedded
- 27:57Transitioning code to C++
- 34:54Transitioning the team
- 37:43Conclusion and Q&A
