gpt4 book ai didi

java - 我应该如何解释 JVM 指令集文档中的 "Operand Stack"?

转载 作者:行者123 更新时间:2023-12-04 07:25:56 26 4
gpt4 key购买 nike

我在看章节6. The Java Virtual Machine Instruction Set
当我阅读下面摘录中的“操作数堆栈”时,我不确定如何解释该部分。尤其是箭头,是栈内还是栈外的意思吗?

mnemonic
Operation
Short description of the instruction

Format

mnemonic
operand1
operand2
...
Forms
mnemonic = opcode

Operand Stack
..., value1, value2 →

..., value3

Description
A longer description detailing constraints on operand stack contents or constant pool entries, the operation performed, the type of the results, etc.

最佳答案

我想这在“注释”部分中有解释:

In the description of the Java Virtual Machine instructions, the effect of an instruction's execution on the operand stack (§2.6.2) of the current frame (§2.6) is represented textually, with the stack growing from left to right and each value represented separately. Thus,


..., value1, value2 →


..., result


shows an operation that begins by having value2 on top of the operand stack with value1 just beneath it.

关于java - 我应该如何解释 JVM 指令集文档中的 "Operand Stack"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68214038/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com