C++ usage in embedded systems

后端 未结 17 1500
南旧
南旧 2021-01-30 22:45

What features of C++ should be avoided in embedded systems?

Please classify the answer by reason such as:

  • memory usage
  • code size
  • speed<
17条回答
  •  深忆病人
    2021-01-30 23:14

    I wouldn't have said there's a hard and fast rule to this; it depends a lot on your application. Embedded systems are typically:

    • More constrained in the amount of memory they have available
    • Often run on slower hardware
    • Tend to be closer to hardware i.e. driving it in some way like fiddling with register settings.

    Just like any other development though, you should balance all of the points you've mentioned against the requirements you were given / derived.

提交回复
热议问题