Stack Size Estimation

前端 未结 10 1606
醉酒成梦
醉酒成梦 2020-12-02 11:30

In multi-threaded embedded software (written in C or C++), a thread must be given enough stack space in order to allow it to complete its operations without overflowing. Co

10条回答
  •  猫巷女王i
    2020-12-02 11:54

    As discussed in the answer to this question, a common technique is to initialise the stack with a known value and then to run the code for a while and see where the pattern stops.

提交回复
热议问题