Mercurial > hg > graal-jvmci-8
annotate runexamplescompare.sh @ 3695:7c26db3259c6
Merge.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 24 Nov 2011 16:14:33 +0100 |
parents | cda0630a8640 |
children |
rev | line source |
---|---|
3190
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
1 #!/bin/bash |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
2 if [ -z "${JDK7}" ]; then |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
3 echo "JDK7 is not defined." |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
4 exit 1; |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
5 fi |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
6 if [ -z "${MAXINE}" ]; then |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
7 echo "MAXINE is not defined. It must point to a maxine repository directory." |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
8 exit 1; |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
9 fi |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
10 if [ -z "${DACAPO}" ]; then |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
11 echo "DACAPO is not defined. It must point to a Dacapo benchmark directory." |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
12 exit 1; |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
13 fi |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
14 ant -f create_examples.xml |
3543
344264424174
Enable debugging of compiler code from Java IDEs. Moved binary to "graal" subdirectory. New flag for starting Graal is just "-graal".
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
3190
diff
changeset
|
15 COMMAND="${JDK7}/bin/java -graal -Xms1g -Xmx2g -esa -G:Extend -Xcomp -XX:CompileOnly=examples $* -jar examples.jar" |
3190
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
16 echo $COMMAND |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
17 $COMMAND |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
18 COMMAND="${JDK7}/bin/java -client -d64 -Xms1g -Xmx2g -esa -Xcomp -XX:CompileOnly=examples $* -jar examples.jar" |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
19 echo $COMMAND |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
20 $COMMAND |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
21 COMMAND="${JDK7}/bin/java -server -d64 -Xms1g -Xmx2g -esa -Xcomp -XX:CompileOnly=examples $* -jar examples.jar" |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
22 echo $COMMAND |
ce2952ab2028
New optimization phase example.
Thomas Wuerthinger <thomas@wuerthinger.net>
parents:
diff
changeset
|
23 $COMMAND |