by elteto · 11mo ago · 0 comments
You can compile with exceptions enabled, use the STL, but strictly enforce no allocations after initialization. It depends on how strict is the spec you are trying to hit.
- C++ Exceptions Reduce Firmware Code Size, ACCU [1]
- C++ Exceptions for Smaller Firmware, CppCon [2]
Provocative talk though, it upends one of the pillars of deeply embedded programming, at least from a size perspective.
So, what exact parts of the STL do you use in your code base? Most be mostly compile time stuff (types, type trait, etc).
No algorithms or containers, which to me is probably 90% of what is most heavily used of the STL.