5

<sarcasm> best advice?

Write microcontroller code in C++ even if the underlying OS won't understand. You can always decompile the program to C code and use the generated code.

Things he forgot to mention:
- cannot use most of C++ core functionality (basically no STL, no exceptions, all of C++11)
- have to get your code to compile twice (C++ and C afterwards)
- debugging that generated C code is a pain in the ass
- have to debug twice

Comments
Add Comment