Jasmin (Java assembler)

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search
Developer(s) Jonathan Meyer, Troy Downing and Daniel Reynaud</td></tr>
Stable release 2.3 / October 10, 2006; 231975042 ago</td></tr>
Written in Java</td></tr>
Operating system Cross-platform</td></tr>
Size 3.0 MiB</td></tr>
Development status Active</td></tr>
Type Assembler</td></tr>
License GNU General Public License</td></tr>
Website http://jasmin.sourceforge.net/</td></tr>

</table> Jasmin is a free open source assembler to create class files from human readable assembler-like syntax using the Java Virtual Machine instruction sets. Jasmin is not a Java programming language compiler.

It could be seen as of writing a program by GAS assembly, instead of using a modern day C++ compiler, assembler, and linker.

Jasmin as an assembler takes ASCII descriptions of JVM Classes, written in a simple assembler-like syntax using the Java Virtual Machine instruction set. It converts them into binary JVM Class files, suitable for loading by a Java runtime system.



The traditional HelloWorld starter in Jasmin:

.class public HelloWorld
.super java/lang/Object

.method public static main([Ljava/lang/String;)V
  .limit stack 2
  .limit locals 1
  getstatic      java/lang/System/out Ljava/io/PrintStream;
  ldc            "Hello World."
  invokevirtual  java/io/PrintStream/println(Ljava/lang/String;)V

.end method


Referenced from the Readme file

 Then, to run Jasmin, use:
     java -jar jasmin.jar examples\HelloWorld.j         [Windows]
     java -jar jasmin.jar examples/HelloWorld.j         [Unix/Mac OS X]


Jon Meyer and Troy Downing wrote Jasmin for their published book "Java Virtual Machine".

At the time of writing there were no known freely available assembler for the Java Virtual Machine instruction set. The only known compilers at the time required input in Java syntax source code, and explicitly using a JVM instruction was impossible. Therefore the authors set out to create an assembler suitable for manipulating and producing a class file to be executed on the Virtual machine.

Jasmin remains the oldest and the original Java assembler known for JVM.

Jasmin is currently located under a SourceForge Open Source project.

See also


  • Jon Meyer: Java Virtual Machine. O'Reilly Associates, 1st Edition March 1997. ISBN 9781565921948

External links

fr:Jasmin (langage)

Personal tools

Served in 0.162 secs.