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.
如何在非裸函数中获取所有局部变量的大小(我的堆栈在序言中移动了多少)?
在裸函数中,我可以使用 __LOCAL_SIZE 符号。
您可以使用dbghelp.dll 中的 StackWalk64来执行完整的堆栈遍历。EBP 和 ESP 是描述每个堆栈帧的结构的一部分。