> the overhead this adds (in terms of flash/rom and ram) can be fatal.
I know you list the resources, but how does this approach add overhead? (how does it use those resources more than a "C" approach would?) Most of the constructs in C++ only cost anything if you use them, so you only pay if you need the feature; further, the runtime costs of most C++ features are pretty much exactly what's required for that featureā¦ so if you were writing C, and you needed the same functionality, how would you avoid paying the same cost?
I know you list the resources, but how does this approach add overhead? (how does it use those resources more than a "C" approach would?) Most of the constructs in C++ only cost anything if you use them, so you only pay if you need the feature; further, the runtime costs of most C++ features are pretty much exactly what's required for that featureā¦ so if you were writing C, and you needed the same functionality, how would you avoid paying the same cost?