Is there any reason to use C instead of C++ for embedded development?

后端 未结 30 3653
既然无缘
既然无缘 2020-11-30 17:20

Question

I have two compilers on my hardware C++ and C89

I\'m thinking about using C++ with classes but without polymorphism (to avoid vtables). The main r

30条回答
  •  隐瞒了意图╮
    2020-11-30 17:49

    Some say that C compilers can generate much more efficient code because they don't have to support the advanced C++ features and can therefore be more aggressive in their optimizations.

    Of course, in this case you may want to put the two specific compilers to the test.

提交回复
热议问题