ã®ã¼ã¯ãã¼ã«è¡ã£ã¦ãã
ä»åã¯ï¼JVM ã«ã¤ãã¦èª¿ã¹ã¦ããï¼
- http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.html
- http://jasmin.sourceforge.net/ - jasmin (JVM ç¨ã® Assembler)
hello.j
.class public hello
.super java/lang/Object.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.end method.method public static main([Ljava/lang/String;)V
.limit stack 2
getstatic java/lang/System/out Ljava/io/PrintStream;
ldc "Hello, World!"
invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V
return
.end method
ã¡ãã£ã¨çé¢ç®ã«æ¸ãã¨ãããªæã
public class hello extends java.lang.Object { public void hello() { super(); } public static void main(java.lang.String[] args) { java.io.PrintStream p = java.lang.System.out; java.lang.String s = "Hello, World!"; p.println(s); } }
ãã¼ã¿ã¿ã¤ã
- ããªããã£ãã¿ã¤ã
- ãªãã¡ã¬ã³ã¹ã¿ã¤ã
ãåè