Java 字节码助记符与 Jasmin 有何不同?
How does Java bytecode mnemonics differ from Jasmin?
Java 字节码助记符是 JVM 的类汇编指令。
在下面给出的 link 中,Jasmin 也被定义为 Java-汇编器。
Jasmin 是 assembler:
An assembler program creates object code by translating combinations
of mnemonics and syntax for operations and addressing modes into their
numerical equivalents. This representation typically includes an
operation code ("opcode") as well as other control bits and data. The
assembler also calculates constant expressions and resolves symbolic
names for memory locations and other entities.[4] The use of symbolic
references is a key feature of assemblers, saving tedious calculations
and manual address updates after program modifications. Most
assemblers also include macro facilities for performing textual
substitution – e.g., to generate common short sequences of
instructions as inline, instead of called subroutines.
所以你用JVM指令助记符写了一个软件程序,然后用Jasmin编译。
Jasmin is an assembler for the Java Virtual Machine. It takes ASCII
descriptions of Java classes, written in a simple assembler-like
syntax using the Java Virtual Machine instruction set. It converts
them into binary Java class files, suitable for loading by a Java
runtime system.
额外参考这个 SO 问题:Difference between: Opcode, byte code, mnemonics, machine code and assembly
Java 字节码助记符是 JVM 的类汇编指令。 在下面给出的 link 中,Jasmin 也被定义为 Java-汇编器。
Jasmin 是 assembler:
An assembler program creates object code by translating combinations of mnemonics and syntax for operations and addressing modes into their numerical equivalents. This representation typically includes an operation code ("opcode") as well as other control bits and data. The assembler also calculates constant expressions and resolves symbolic names for memory locations and other entities.[4] The use of symbolic references is a key feature of assemblers, saving tedious calculations and manual address updates after program modifications. Most assemblers also include macro facilities for performing textual substitution – e.g., to generate common short sequences of instructions as inline, instead of called subroutines.
所以你用JVM指令助记符写了一个软件程序,然后用Jasmin编译。
Jasmin is an assembler for the Java Virtual Machine. It takes ASCII descriptions of Java classes, written in a simple assembler-like syntax using the Java Virtual Machine instruction set. It converts them into binary Java class files, suitable for loading by a Java runtime system.
额外参考这个 SO 问题:Difference between: Opcode, byte code, mnemonics, machine code and assembly