News for hackers. Stuff that matters.
Re:C++17’s Useful Features for Embedded Systems by raxxorraxor on Tuesday May 30, 2023 @03:06AM (#36121944)
Didn't know about this language feature. Seems neat. The ASM integration is also neat. If you compare that to C...

Still, I have rarely seen C++ compilers for embedded systems. Although the latter definition more and more includes PC hardware.

Re:C++17’s Useful Features for Embedded Systems by Denvercoder9 on Tuesday May 30, 2023 @03:34AM (#36122119)
> Still, I have rarely seen C++ compilers for embedded systems.

What kind of embedded systems? Even AVR has a C++ compiler.

Re:C++17’s Useful Features for Embedded Systems by raxxorraxor on Tuesday May 30, 2023 @10:10AM (#36125075)
Yeah, that was wrong. I meant there are very few serious projects implemented in C++ for µC that are restricted memory wise.

Yes, AVR has a C++ compiler, but I could imagine it doesn't support all language features. If it does it would still be discouraged to use dynamic memory allocation, which is pretty essential to leverage many advantages of object orientated languages.

Of course embedded systems aren't restricted to that anymore and you are perfectly fine to use C++ for the average ARM system that isn't as restricted memory wise.

Re:C++17’s Useful Features for Embedded Systems by mvladic on Sunday June 04, 2023 @02:33PM (#36188174)
Still, C++ is very useful on embedded systems. This article is just about that.