C++ to the RISCue! A Practical Guide for Embedded C++20
summary
Claims that modern C++20 runs for embedded development entirely with online tools and that a declarative state machine yields smaller faster output. Uses Compiler Explorer for cross compilation and tests, Tinkercad for AVR/Arduino simulation (Raspberry Pi simulation is not available), PlantUML for design, and the single-header sml state machine library for implementation and BDD-style tests with fakes. Builds a button→LED state machine, measures assembly size 44→32→24 lines across implementations, and demonstrates simulation working for AVR/Arduino though one demo needs a copied-assembly tweak.
AI-written summary · about
chapters (17)
- 0:00Start
- 4:19Motivation
- 6:44Goal
- 6:54Arduino
- 8:16What Tools Will Be Going To Use for the Design
- 11:23Implementation
- 13:47Simulation
- 18:38Design
- 23:35Policies in Sml
- 23:51Nested Switch
- 25:22Benchmark
- 33:28The Transition Table
- 36:02Testing
- 36:51Testing Framework
- 39:47Global Variables
- 44:44Compiler Explorer
- 50:13Demo
related talks
01h 09m“Modern C++ in Embedded Systems - The Saga Continues”
52mC++ for Embedded Development
01h 11mC++ in the World of Embedded Systems
01h 31mBetter embedded library interfaces with modern C++
01h 08mKeynote: What can C++ do for embedded systems developers?
01h 01mMicrocontrollers in Micro-increments...
01h 00mModern Software Needs Embedded Modern C++ Programming
54mCombat complexity - build your own open OS and hardware
