Modern C++: C++ Patterns to Make Embedded Programming More Productive
summary
Shows concrete patterns: a declarative gpio definition and small functor-based chipselect that centralizes intent; constexpr thermistor lookup (256 floats compiled into .rodata) generated from compile-time formulas; a custom MCU file-stream that replaces <iostream> and reduces binary from ~157 KB (iostream) to about 2.3 KB (vs 1.7 KB empty main) — tiny cost for stream IO; an arena allocator that boosts allocations (341 → ~3×) for allocate-once ML graphs; examples compile and run on a dev board.
AI-written summary · about
chapters (9)
- 0:00Introduction to embedded
- 5:28Declarative GPIO config
- 9:31Modular IO handling
- 15:57Compile-time lookup tables
- 23:22Readable numeric structures
- 31:00Lightweight stream IO
- 40:57Safe heap usage
- 50:23Chrono and performance
- 54:56Random data generation
related talks
55mC++ on small micro controllers
49mCost of C++ Abstractions in C++ Embedded Systems
57mDeeply Embedded C++
01h 02mEmbedded Friendly C++: Features That Make a Difference
58mLeveraging C++20/23 Features for Low Level Interactions
01h 04mFunctional C++ for Fun and Profit
59mHow to understand modern C++ features in practice? Let's create a compiler!
01h 03mUnlocking the value of C++20
