|
|
|
|
|
by pjmlp
1489 days ago
|
|
Unless we are talking about something like Z80, 6502, PIC, AVR and similar low end CPUs, which hardly full support even C89, all modern CPUs have C++ compilers available. More often than not, it is a matter of not wanting to use C++ than it not being available. |
|
Yes, it can work for simple Arduino sketches, and I won't say that there are not complex embedded projects in C++.
But... why should I want to use C++?
For one, I use a small subset, like it's C with classes. I like function overloading and default argument values, initializing default values for some structs, not having to type typedef struct, the fact that for a time I could declare variables mid-function and using literal bool, true, false, etc.
But full-blown C++ on embedded (MCU)? I think I'll pass.