summaryrefslogtreecommitdiff
path: root/examples/gfcc/compiler/runtime.j
diff options
context:
space:
mode:
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