From ff2a2895c08b667894b565c8d39f0bf63d85492a Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 24 Sep 2004 16:04:04 +0000 Subject: gfcc --- examples/gfcc/compiler/runtime.j | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 examples/gfcc/compiler/runtime.j (limited to 'examples/gfcc/compiler/runtime.j') 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 ()V + aload_0 + invokenonvirtual java/lang/Object/()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 -- cgit v1.2.3