diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-06-25 16:54:35 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-06-25 16:54:35 +0000 |
| commit | e9e80fc389365e24d4300d7d5390c7d833a96c50 (patch) | |
| tree | f0b58473adaa670bd8fc52ada419d8cad470ee03 /old-examples/gfcc/compiler/runtime.j | |
| parent | b96b36f43de3e2f8b58d5f539daa6f6d47f25870 (diff) | |
changed names of resource-1.3; added a note on homepage on release
Diffstat (limited to 'old-examples/gfcc/compiler/runtime.j')
| -rw-r--r-- | old-examples/gfcc/compiler/runtime.j | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/old-examples/gfcc/compiler/runtime.j b/old-examples/gfcc/compiler/runtime.j new file mode 100644 index 000000000..88db0b9b8 --- /dev/null +++ b/old-examples/gfcc/compiler/runtime.j @@ -0,0 +1,55 @@ +.class public runtime +.super java/lang/Object +; +; standard initializer +.method public <init>()V + aload_0 + invokenonvirtual java/lang/Object/<init>()V + return +.end method + +.method public static ilt(II)I +.limit locals 2 +.limit stack 2 + iload_0 + iload_1 + if_icmpge Label0 + iconst_1 + ireturn + Label0: + iconst_0 + ireturn +.end method + +.method public static flt(FF)I +.limit locals 2 +.limit stack 2 + fload_0 + fload_1 + fcmpl + ifge Label0 + iconst_1 + ireturn + Label0: + iconst_0 + ireturn +.end method + +.method public static iprintf(I)V +.limit locals 1 +.limit stack 1000 + getstatic java/lang/System/out Ljava/io/PrintStream; + iload_0 + invokevirtual java/io/PrintStream/println(I)V + return +.end method + +.method public static fprintf(F)V +.limit locals 1 +.limit stack 1000 + getstatic java/lang/System/out Ljava/io/PrintStream; + fload_0 + invokevirtual java/io/PrintStream/println(F)V + return +.end method + |
