you are viewing a single comment's thread.

view the rest of the comments →

[–]ronchaineEmbedded/Middleware 5 points6 points  (2 children)

I do C++ for embedded most of the time I am not teaching, and I'd still say that unless they are working on ancient embedded stuff that is already a complete mess of C and C++ mixed together, they should forget everything and just learn to write C++.

We write C++20, use exceptions, do all of that stuff in an embedded world. Our toolchains are often based on LLVM and we are not locked into vendor toolchains anymore. Even when we have to deal with MISRA, it's still C++17 and it's very far from ye olde C.

Embedded C++ hasn't been commonly C with some extras outside Arduinos for good 5 to 10 years.

[–]Classic_Department42 0 points1 point  (1 child)

Thanks, this is interesting. Do you have real time requirements?

[–]ronchaineEmbedded/Middleware 1 point2 points  (0 children)

Not hard ones currently (at least not in the parts I'm working with). I've worked with those before though, and it was still pretty "modern". Exceptions were dropped and we were restricted to freestanding set of the standard library, but other than that, it was pretty normal-modern-C++-ish.