Re:C++ on Embedded Systems
by wott on Tuesday February 21, 2017 @09:07AM
(#13695506)
Nothing guarantees that it is zero-overhead, it all depends on the efforts, quality and mood of the C++ compiler. Whereas in C you can at least rely on the fact that even without any complex optimisation it will at worst produce machine code that looks 99% like the C code, because it maps 1 -> 0.99. Good luck telling what is the complexity hidden behind a C++ operator.
[ Parent
| on HN ]
Re:C++ on Embedded Systems
by eliangidoni on Wednesday February 22, 2017 @10:20AM
(#13706109)
Right, that was my point. You have to use time/effort on understanding the compiler workings, time that could be used to focus on your actual problem and features implementation. For firmware I wouldn't.