Mention embedded programming and most will automatically think of C. But while it’s still the dominant language for the space, these days C has lots of company. The Internet of Things (IoT) is one of ...
C remains the darling of embedded programmers, but C++ garners a sizable chunk. Using C++ features judiciously can result in code that’s as efficient or more efficient than a comparable C application.
I recently presented arguments for and against using dynamic memory allocation in C and C++ programs. 1 I do agree that truly safety-critical systems should avoid using dynamic allocation because the ...