Mercurial > hg > graal-compiler
annotate graal/com.oracle.max.graal.examples/runexample_c1.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 |
rev | line source |
---|---|
3218
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
1 #!/bin/bash |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
2 if [ -z "${JDK7}" ]; then |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
3 echo "JDK7 is not defined." |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
4 exit 1; |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
5 fi |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
6 if [ -z "${MAXINE}" ]; then |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
7 echo "MAXINE is not defined. It must point to a maxine repository directory." |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
8 exit 1; |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
9 fi |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
10 if [ -z "${GRAAL}" ]; then |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
11 echo "GRAAL is not defined. It must point to a maxine repository directory." |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
12 exit 1; |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
13 fi |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
14 if [ -z "${DACAPO}" ]; then |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
15 echo "DACAPO is not defined. It must point to a Dacapo benchmark directory." |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
16 exit 1; |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
17 fi |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
18 TEST=$1 |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
19 shift |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
20 ant -f create_examples.xml |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
21 COMMAND="${JDK7G}/bin/java -client -d64 -Xmx1g -esa -XX:+PrintCFGToFile -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}" |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
22 # echo $COMMAND |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
23 $COMMAND |