On Mon, Nov 9, 2009 at 11:21 AM, Miguel Garcia <
miguel.garcia@...> wrote:
> I've been exploring what the nsc generated bytecode looks like, using the
> following decompiler
>
> Â McGill's "Dava" Java Decompiler
http://www.sable.mcgill.ca/dava/>
> One of the explicit goals of Dava is to generate compilable Java from
> non-Java bytecode (that's the idea).
> Some things work and others don't. Has anybody tried other ways to get a
> high-level view of nsc-generated bytecode?
You can use scalac -Xprint:<phase> to get an idea of what scalac is
doing. Especially using -Xprint:jvm should give something very close
to bytecodes. Low-level inspection tools are javap and scalap (though,
I don't know what the latter one does exactly. IMO it just prints the
serialized scala signatures).
What do you expect from a high-level view of bytecodes?
--
Johannes
-----------------------------------------------
Johannes Rudolph
http://virtual-void.net