- 1、本文档共23页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Win32程序函数调用时堆栈变化情况分析(国外英文资料)
Win32程序函数调用时堆栈变化情况分析(国外英文资料)
The Win32 program function calls the stack changes condition analysis
In the classic assembly language tutorial, the use of the stack for function calls is a matter of emphasis. With the increasing sophistication of high-level languages, there is not much that can be done using assembly. But the understanding of the function call stack when the trend is still help us clear execution process, thus in the process of programming and debugging with a clear train of thought.
One. Call convention
In Win32, there are two main conventions for the invocation of functions.
1. _stdcall
Functions invoked by the __stdcall method have the following characteristics:
The # 8226; The parameters are pressed from right to left
The # 8226; When the call returns, the stack is adjusted by the tuning function
2. The __cdecl
The __cdecl convention is the default invocation convention for C/C + + functions. It has the following characteristics:
The # 8226; The parameters are pressed from right to left
The # 8226; When the call returns, the stack is adjusted by the caller
Two. Win32 function call process
Pressure parameter
This is where the parameters given by the caller are pressed into the stack by the method above.
Push the break point
When the program executes the Call instruction, the address of the current statement is pressed into the stack as the breakpoint address.
jump
The value of the eip is reset to the starting address of the callback function.
Mov ebp, esp
This is where the ebp is used to look for parameters that are pressed by the caller in the stack, as well as a backup of the caller stack pointer. It should have been done before:
Push ebp
Save the original value of the ebp.
Sub esp, N
Here N is the total number of bytes of local variables in the function plus an integer, usually 40. The esp is then the stack pointer to the tuned function.
Initialize the N byte space between esp ~ esp-n
This is the initialization of the memory space allocated
您可能关注的文档
- NBA篮球术语(国外英文资料).doc
- MySQL常用命令(国外英文资料).doc
- net command(国外英文资料).doc
- NBA属性(国外英文资料).doc
- NetBox使用教程(国外英文资料).doc
- netstart可以启动的命令一览(国外英文资料).doc
- nfs安装配置(国外英文资料).doc
- nike 真假(国外英文资料).doc
- nike编码的深刻内涵!(国外英文资料).doc
- mp3mp4常见问题维修方法(国外英文资料).doc
- 2025至2030中国连锁便利店行业市场深度分析及前景趋势与投资报告.docx
- 2025至2030中国牙科影像器械行业发展趋势分析与未来投资战略咨询研究报告.docx
- 2025至2030钳形电流表行业发展趋势分析与未来投资战略咨询研究报告.docx
- 2025至2030中国联网控制系统行业发展趋势分析与未来投资战略咨询研究报告.docx
- 2025至2030全球及中国加固计算机行业产业运行态势及投资规划深度研究报告.docx
- 2025至2030银杏茶行业发展趋势分析与未来投资战略咨询研究报告.docx
- 2025至2030燃气热泵空调系统行业发展趋势分析与未来投资战略咨询研究报告.docx
- 2025至2030中国齿轮钢行业市场分析及竞争形势与发展前景预测报告.docx
- 2025至2030中国风扇行业产业运行态势及投资规划深度研究报告.docx
- 2025至2030全球及中国休闲和款待软件行业发展趋势分析与未来投资战略咨询研究报告.docx
最近下载
- 专题01 定语从句100题(考点串讲)(word版有答案).docx VIP
- 凿井井架设计汇编.doc VIP
- 北京某电力隧道工程投标施工组织设计.doc VIP
- 《【阅读专题2】故物与深情:感受血缘中的亲情》教学课件.pptx VIP
- 人教版九年级英语 课文标注笔记 全册.pdf VIP
- 北京某电力隧道工程(投标)施工组织设计.pdf VIP
- 高压旋喷桩技术交底1 - 桩基础.docx VIP
- 17J008 挡土墙(重力式、衡重式、悬臂式)(最新).pdf VIP
- 《【阅读专题1】忠与孝:体会宗法社会的伦理选择之难》教学课件 (1).pptx VIP
- 力普LP100说明书PDF_Image_Marked.pdf VIP
文档评论(0)