4 ms·
I honestly think that, at this point, it's often a matter of taste, rather than technical. What tool do you think will make you more productive and interested
by mutac 8y ago
I honestly think that, at this point, it's often a matter of taste, rather than technical. What tool do you think will make you more productive and interested in the project?
I personally don't think there's anything wrong at all with using c++11 (or any version) on devices like this, so long as the compiler you need to use provides a stable implementation of it. The new language features of c++11, like constexpr and move semantics, and the static meta-programming contraptions that are readily at hand in the STL can all be very helpful to create manageable and fast embedded systems.
Though it usually isn't a free for all. These things are commonly avoided:
* Exceptions (in many cases this alters the call-return sequence, which can increase code size, and add overhead that may not be acceptable)
* Most of the STL (because either a feature requires exceptions to use safely--like containers, or perhaps because the feature doesn't fit into your code section, or just takes up too much of it to be worthwhile)
* RTTI (which can increase the size of a vtable)
https://news.ycombinator.com/item?id=12138374 https://news.ycombinator.com/item?id=12138374