Modern C++ in embedded development: strong types and user-defined literals
I started using Modern C++ in embedded projects two years ago. Even though C is a defacto standard language in embedded development, I see more and more people switching to C++. Embedded developers are often biased and still think you can’t use C++ without dynamic...
Modern C++ in embedded development: using C libraries
Language linkage C++ programs can use C code. The linkage between C++ and software modules written in other programming languages is called language linkage. extern string-literal {declaration} Standard guarantees only two language linkages: C++ and C. C++ is the...
Modern C++ in embedded development: constexpr
What is constexpr? Cppreference defines constexpr specifier as follows: “The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time. Such variables and functions can then be used where only compile-time...
Modern C++ in embedded development
C - the only right tool for the job It is a common opinion amongst embedded developers that the only right tool for the job is C. Being an embedded developer you spend a lot of time reading device datasheets. Datasheets describe peripherals in terms of registers that...
S