On Tue, Apr 22, 2003 at 06:36:13PM +0100, Colin Watson wrote: > > I say simple, but then, I didn't write the decompiler. :)
I did. :-) (http://pdr.cx/projects/hbd/) And yes it is quite simple since essentially a 0-address (stack-based) virtual machine is more-or-less equivalent to an RPN interpreter which is easy to translate back to infix. > Note that, IIRC, the Java .class format doesn't store the names of local > variables in methods, so you lose a good deal of intelligibility during > the decompilation process. They actually /can/ be, given the right compiler flags, but obviously the JVM doesn't care either way. It's useful to have them when debugging though. Pete -- Pete Ryland http://pdr.cx/

