Embedded C++ For Embedded C Programmers
summary
Argues that a tiny, disciplined C++ subset gives safer abstractions without blowing flash or RAM, and demonstrates a small library that runs on Arduino, Pico and Cortex targets. Shows concrete code: pins object wrappers for GPIO, a tiny display driver and a blink demo that actually runs on kilobyte-class devices. Uses standard cross compilers and a simple toolchain, avoids exceptions and heap allocation, relies on fixed-size containers and function-pointer tables; it works on real hardware.
AI-written summary · about
chapters (13)
- 0:00Introduction to embedded C++
- 2:10Why switch from C to C++
- 6:09Compiler support for embedded targets
- 10:33C++ features for embedded systems
- 15:11Reasons not to switch to C++
- 20:35Pointers and memory management
- 24:54Floating point calculations in C++
- 29:37Function overloading and templates
- 33:53Function pointers in embedded C++
- 37:29Object-oriented hardware libraries
- 41:38Practical demo LED blinking
- 46:15Display output with embedded C++
- 48:24Takeaways and recommendations
