Mercurial > hg > graal-compiler
annotate graal/com.oracle.max.graal.examples/runexamplescompare.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="${JDK7}/bin/java -client -d64 -graal -Xms1g -Xmx2g -esa -G:Extend -Xcomp -XX:CompileOnly=examples $* -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 |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
24 COMMAND="${JDK7}/bin/java -client -d64 -Xms1g -Xmx2g -esa -Xcomp -XX:CompileOnly=examples $* -jar examples.jar ${TEST}" |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
25 echo $COMMAND |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
26 $COMMAND |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
27 COMMAND="${JDK7}/bin/java -server -d64 -Xms1g -Xmx2g -esa -Xcomp -XX:CompileOnly=examples $* -jar examples.jar ${TEST}" |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
28 echo $COMMAND |
3d66094eeda1
cleanup, new shell scripts for examples
Lukas Stadler <lukas.stadler@jku.at>
parents:
diff
changeset
|
29 $COMMAND |