我正在阅读章节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/