C++ usage in embedded systems

后端 未结 17 1851
南旧
南旧 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:23

    Exceptions are likely going to be the most common answer of what to avoid. Most implementations have a fairly large static memory cost, or a runtime memory cost. They also tend to make realtime guarantees harder.

    Look here for a pretty good example of a coding standard written for embedded c++.

提交回复
热议问题