How to dump AST nodes of a small program (larger program works)?

Sidharth Kshatriya sid.kshatriya at gmail.com
Wed Jul 27 03:47:34 UTC 2016


Hi,

I am playing around with simplelanguage. To that end, I have a jvmci
compiler, graal-core, truffle, mx etc. all setup as explained on github.

Something like:

./sl -disassemble -dump tests/SumCall.sl

works properly and I can see the AST/Compilation passes in igv. However,
something like

./sl -disassemble -dump tests/HelloWorld.sl

does not show anything in igv. The program simply prints the result and
exists.

Is this because this program is being purely run in the AST interpreter?
Its a trivial program, I know, but I want to see the AST.

I'm on Truffle API 0.15 / jvmci 0.19-dev.

Thanks,

Sidharth


More information about the graal-dev mailing list