Mercurial > hg > graal-compiler
comparison graal/com.oracle.max.graal.examples/runexample.sh @ 3218:3d66094eeda1
cleanup, new shell scripts for examples
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 14 Jul 2011 10:33:35 +0200 |
parents | |
children | e41017cddf3a |
comparison
equal
deleted
inserted
replaced
3213:1ba9612f6d6e | 3218:3d66094eeda1 |
---|---|
1 #!/bin/bash | |
2 if [ -z "${JDK7}" ]; then | |
3 echo "JDK7 is not defined." | |
4 exit 1; | |
5 fi | |
6 if [ -z "${MAXINE}" ]; then | |
7 echo "MAXINE is not defined. It must point to a maxine repository directory." | |
8 exit 1; | |
9 fi | |
10 if [ -z "${GRAAL}" ]; then | |
11 echo "GRAAL is not defined. It must point to a maxine repository directory." | |
12 exit 1; | |
13 fi | |
14 if [ -z "${DACAPO}" ]; then | |
15 echo "DACAPO is not defined. It must point to a Dacapo benchmark directory." | |
16 exit 1; | |
17 fi | |
18 TEST=$1 | |
19 shift | |
20 ant -f create_examples.xml | |
21 COMMAND="${JDK7}/bin/java -client -d64 -graal -Xmx1g -esa -G:Extend -G:Plot -G:CacheGraphs -XX:+PrintCompilation -Xcomp -XX:CompileOnly=examples -XX:CompileCommand=quiet -XX:CompileCommand=exclude,*,<init> -XX:CompileCommand=exclude,*,run -XX:CompileCommand=exclude,com.oracle.max.graal.examples.Main::main $* -jar examples.jar ${TEST}" | |
22 # echo $COMMAND | |
23 $COMMAND |