export JAVA_HOME=/set/java/re/jdk/9/promoted/latest/binaries/linux-x64/
$JAVA_HOME/bin/javac $1.java
g++  -fPIC -o lib$1.so -shared -I$JAVA_HOME/include -I$JAVA_HOME/include/linux -I. $1.c
echo "Running without -Xcomp"
LD_LIBRARY_PATH=. CLASSPATH=. $JAVA_HOME/bin/java -agentlib:Main $1
echo "------\n\n"
echo "Running with -Xcomp"
LD_LIBRARY_PATH=. CLASSPATH=. $JAVA_HOME/bin/java -Xcomp  -agentlib:Main $1




