Resources for memory management in embedded application

前端 未结 7 744
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-31 17:50

How should I manage memory in my mission critical embedded application?

I found some articles with google, but couldn\'t pinpoint a really useful practical guide.

7条回答
  •  旧时难觅i
    2020-12-31 18:05

    You might find this question interesting as well, dynamic allocation is often prohibited in space hardened settings (actually, core memory is still useful there).

    Typically, when malloc() is not available, I just use the stack. As Tronic said, the whole reason behind not using malloc() is that it can fail. If you are using a global static pool, it is conceivable that your internal malloc() implementation could be made fail proof.

    It really, really, really depends on the task at hand and what the board is going to be exposed to.

提交回复
热议问题