TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

x86 Machine Code Statistics (2008)

2 点作者 jesterpm将近 3 年前

1 comment

josephcsible将近 3 年前
&gt; Note that <i>PUSH</i> is twice more common than <i>POP</i>. These instructions are used in pairs for preserving EBP, ESI, EDI, and EDX registers across function calls, and <i>PUSH</i> is also used for passing arguments to functions; that&#x27;s why it is more frequent.<p>To expand on why PUSH being used for passing arguments to functions makes it more frequent than POP: The caller of a function will usually push one argument at a time to the stack, but then just use the ADD instruction to put the stack pointer back afterwards. (Or with __stdcall functions, the RET instruction will take an operand that does the same thing.)