how bad is it to use dynamic datastuctures on an embedded system?

后端 未结 8 1565
深忆病人
深忆病人 2020-12-13 21:38

So in an embedded systems unit, that i\'m taking at uni next year, we will learn that dynamic data structures are a bad thing to have in an embedded system program. but the

8条回答
  •  天命终不由人
    2020-12-13 21:49

    I would say both the lack of memory and the problem of a failed malloc. The latter is more of an issue since you do not have an OS / interface to rescue the system from such a failure. It is very dangerous to use a function that can put your complete system that may be running headless into a screeching halt (Or perhaps cause a reset, still bad).

提交回复
热议问题