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 ...
Targeting the NEC 8-bit microcontroller, the IAR Embedded Workbench for 78K integrates C/C++ with advanced support like Embedded C++, which includes templates and the Standard Template Library (STL).