gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 02:33:54 24 4
gpt4 key购买 nike

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/

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