This discussion is archived
1 Reply Latest reply: Dec 25, 2011 9:00 AM by rp0428 RSS

how to dump intermediate representation of code?

899437 Newbie
Currently Being Moderated
Hello dear community,

I got an interesting question, just out of my curiosity... reading a book about jRockit I saw examples how java program is transformed and how it looks (java code -> byte code -> HIR -> MIR -> etc), and all the time authors provided real code, or better to say how that code looks at different stages of transformation. I also saw the same examples in internet (like here: - pages 36, 44, ...)
The question is what should I use (either external dumper or JVM parameters) to see the same for my custom code? I heard that it is possible, but I can't find it in the Internet. Again, I'm asking just to understand better what is done by JVM, how it works etc.

thank you for any hints,
  • 1. Re: how to dump intermediate representation of code?
    rp0428 Guru
    Currently Being Moderated
    The 'javap' utility (type 'javap -help') that comes with Java can disassemble class files. You can also use Java decompilers that you find on the web: JDGUI, JAD and others.

    The Java Virtual Machine Specification (e.g. explains the instruction set and structure.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points