Dumping graphs on the command line

Alexander Senier alexander.senier at tu-dresden.de
Fri Jun 2 10:45:38 UTC 2017


Hi all,

I'm looking into Graal to create data flow graphs from Java programs.
Following the info from the repository I successfully got graphs in IGV
from the unittests (Linux, version 0.23 from the website):

$ JAVA_HOME=../../labsjdk1.8.0_121-jvmci-0.26/ ../../mx/mx igv&
$ PATH=/opt/graalvm-0.23/bin:$PATH
JAVA_HOME=../../labsjdk1.8.0_121-jvmci-0.26/ ../../mx/mx unittest
-Dgraal.Dump= -Dgraal.PrintCFG=true BC_aload

I see the graphs in IGV as well as the CFGPrinter log output.
Subsequently, I tried to get the same graphs for a custom example:

$ /opt/graalvm-0.23/bin/javac  DH.java
$ /opt/graalvm-0.23/bin/java -Dgraal.Dump= -Dgraal.PrintCFG=true
-XX:+UseJVMCICompiler DH

While the program is compiled and run, no graphs are generated in IGV
nor do I see any log files. I see no graal related messages either.

What is the canonical way to dump graphs from a compilation, preferably
on the Linux command line?

Thanks!

Cheers,
Alex

-- 
Dipl.-Inf. Alexander Senier
Scientific Assistant

TU Dresden
Faculty of Computer Science
Institute of System Architecture
Chair of Privacy and Data Security
01062 Dresden

Tel.: +49 351 463-38719
Fax : +49 351 463-38255


More information about the graal-dev mailing list