什么是源代码级语句?
什么是“源级声明”?
《计算机组织与设计》中的“算法决定源级语句的数量和执行的 I/O 操作的数量”
What are "source-level statements"?
"Algorithm determines both the number of source-level statements and the number of I/O operations executed" from Computer Organization and Design
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
语句:执行某事的一行代码。我猜,源代码级意味着在源代码中。
Statement: A line of code which does something. Source-level means in source code, I guess.
高级编程语言所谓的“语句”。通常,源代码级语句会(在编译期间)转换为数十条机器指令。
例如,语句可能包括函数调用,它不仅转换为调用指令,还转换为参数的计算、在调用之前和之后压入和弹出参数的堆栈操作指令(取决于调用约定)。但它只能算作一个“来源级”声明。
Whatever is called a "statement" by your high-level programming language. Often a source-level statement translates (during compilation) to dozens of machine instructions.
For example, a statement may include a function call, which translates to not only a call instruction, but computation of the arguments, stack-manipulation instructions to push and pop the arguments before and after the call (depending on calling convention). But it would only count as one "source-level" statement.