How to determine maximum stack usage in embedded system with gcc?

后端 未结 5 2115
谎友^
谎友^ 2020-11-28 03:58

I\'m writing the startup code for an embedded system -- the code that loads the initial stack pointer before jumping to the main() function -- and I need to tell it how many

5条回答
  •  春和景丽
    2020-11-28 04:25

    I ended up writing a python script to implement τεκ's answer. It's too much code to post here, but can be found on github

提交回复
热议问题