u/Mysterious_Feature_1in r/embedded • Recommends
On “C++ in Embedded Systems: A practical transition from C to modern C++”
…ary https://github.com/intel/generic-register-operation-optimizer, and more on strong types https://www.fluentcpp.com/2016/12/08/strong-types-for-strong-interfaces/
C++ is a more expressive language than C. While you can do anything in C, C++ allows writing expressive and declarative code. Some examples are:
\- Boost SML, state machine library [video
\- CIB library (Intel) [video https://github.com/intel/compile-time-init-build
Using C++ doesn't mean you must use the standard library. And if you want standard-library-like container, you can always use ETL https://www.etlcpp.com/
Compile-time computation - with constexpr you can generate lookup tables at compile-time and more -…