Using Graal without mx
timothy.l.harris at oracle.com
Wed Nov 4 16:08:03 UTC 2015
I am working on a Java version of our parallel runtime system work (https://timharris.uk/papers/2015-atc-callisto.pdf). I am using Graal with HotSpot to enable use of GNFI in place of JNI for calls into the C++ runtime system library. I want to build the runtime system and Java test cases with our existing build system (rather than changing to use "mx" for everything).
My current plan is to have a separate Graal build tree and to pass the location in to the Callisto-RTS build system.
Is there already a recommended way for using Graal in this manner without using "mx"? Right now I am looking at the command lines from "mx -v" and picking out the parameters that look relevant. E.g., to run my test case java_perf02:
/home_bunch/tlharris/graal-new/graal/jvmci/jdk1.8.0_20/product/bin/java -jvmci -d64 -Djvmci.compiler=graal -Xbootclasspath/p:/home_bunch/tlharris/graal-new/graal/truffle/mxbuild/dists/truffle-api.jar -XX:-UseJVMCIClassLoader -cp ../obj_x64_gcc/test:../obj_x64_gcc/rts.jar java_perf02
More information about the graal-dev