java - Java 字节码助记符与 Jasmin 有何不同?

标签 java jvm java-bytecode-asm jasmin

Java 字节码助记符是 JVM 的类似于汇编的指令。 Jasmin 在下面给出的链接中也被定义为 Java 汇编器。

http://jasmin.sourceforge.net/

最佳答案

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 User's Guide :

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.

额外引用这个问题:Difference between: Opcode, byte code, mnemonics, machine code and assembly

关于java - Java 字节码助记符与 Jasmin 有何不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43615310/

相关文章:

java - 不同的 Java 字节码反编译为完全相同的 p 代码和 java 代码

软件的 Java Swing GUI,最好的方法

java - 本地主机 : ERROR: Invalid HADOOP_MAPRED_HOME while running start-dfs. sh

Java Python 消息签名与验证

java - 如何查看JVM中每个线程使用了多少资源(cpu,内存,io)

java - ASM 不报告常量指令

java - FileWriter方法只写最后一行

java - 如何获取JVM?

java - 了解 hs_err_pid<n>.log 文件

java - 如何应用我编写的AdviceAdapter?