X-Git-Url: http://git.megacz.com/?p=nestedvm.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fnestedvm%2FRuntimeCompiler.java;h=a722d9c7bdff407eaa84396dc68a824e2705b4c0;hp=80f56ac2995ca51844ec5a4d03ea42bfb7f3d290;hb=cc4469a3b4c4fc1c5070e539f53a3e4cca0b8c75;hpb=98f786ce8ee1fcd9568d1c367160851d32e1c786 diff --git a/src/org/ibex/nestedvm/RuntimeCompiler.java b/src/org/ibex/nestedvm/RuntimeCompiler.java index 80f56ac..a722d9c 100644 --- a/src/org/ibex/nestedvm/RuntimeCompiler.java +++ b/src/org/ibex/nestedvm/RuntimeCompiler.java @@ -18,7 +18,7 @@ public class RuntimeCompiler { ByteArrayOutputStream baos = new ByteArrayOutputStream(); ClassFileCompiler c = new ClassFileCompiler(data,className,baos); // FEATURE: make this Optional, pass options on compile arguments - c.parseOptions("unixruntime"); + c.parseOptions("unixruntime,nosupportcall"); c.go(); baos.close(); byte[] bytecode = baos.toByteArray(); @@ -27,7 +27,7 @@ public class RuntimeCompiler { private static class SingleClassLoader extends ClassLoader { public Class loadClass(String name, boolean resolve) throws ClassNotFoundException { - System.err.println(this + ": loadClass(\"" + name + "," + resolve + ");"); + System.err.println(this + ": loadClass(\"" + name + "," + resolve + ");"); return super.loadClass(name,resolve); } public Class fromBytes(String name, byte[] b) { return fromBytes(name,b,0,b.length); } @@ -39,8 +39,8 @@ public class RuntimeCompiler { } public static void main(String[] args) throws Exception { - if(args.length == 0) { - System.err.println("Usage: RuntimeCompiler mipsbinary"); + if(args.length == 0) { + System.err.println("Usage: RuntimeCompiler mipsbinary"); System.exit(1); } UnixRuntime r = (UnixRuntime) compile(new Seekable.File(args[0])).newInstance();