Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
实际上,有两种大小:最初提交的和总保留的。
您使用静态分析还是动态分析?哪些工具?有哪些技巧?
一种技术是使用已知值在 main 或线程 main 中绘制堆栈,然后在清理时从堆栈限制进行扫描,直到不再找到您的已知值。
您的堆栈端将被定义为一个符号,生成一个 .map 文件以确定堆栈限制及其符号名称。
此处讨论:如何确定最大堆栈使用量?