News for hackers. Stuff that matters.
Re:Run a C program bare metal on an ARM Cortex M3 by gumby on Thursday August 16, 2018 @01:24AM (#17772131)
C++ can allow you to write much more efficient code (in speed or space) than C code, but the key word is can. Unless you really know the hardware and really know what you're doing the opposite is possible.

I have written solid, maintainable c++ code for the AVR, but the writing of it was difficult -- it was the maintenance and use by others was easier (example: what looked like a struct actually laid out its code noncontiguously -- but someone who needed to add a small feature didn't need to know that much less worry about it).

C++ is fundamentally a systems programming language so quite a bit of embedded code is written with it. But it's designed to be span tiny to massive applications, and different features are intended for different points on that curve.

There are no comments on this comment yet.