summaryrefslogtreecommitdiff
path: root/examples/gfcc/compiler/runtime.j
diff options
context:
space:
mode:
authoraarne <unknown>2004-09-24 16:04:04 +0000
committeraarne <unknown>2004-09-24 16:04:04 +0000
commitff2a2895c08b667894b565c8d39f0bf63d85492a (patch)
tree74fcc69d499d962c61916fed4e7941851eb0ceea /examples/gfcc/compiler/runtime.j
parent33ea630d4d431045c13e96c51e953ce0bafb4f0f (diff)
gfcc
Diffstat (limited to 'examples/gfcc/compiler/runtime.j')
-rw-r--r--examples/gfcc/compiler/runtime.j25
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/gfcc/compiler/runtime.j b/examples/gfcc/compiler/runtime.j
new file mode 100644
index 000000000..c99523cc7
--- /dev/null
+++ b/examples/gfcc/compiler/runtime.j
@@ -0,0 +1,25 @@
+.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
+ Label1:
+.end method
+
+; TODO: flt missing