[kaffe] Re: Decoding compiled class files

Dalibor Topic robilad at yahoo.com
Tue May 13 08:57:01 PDT 2003


Hi Tony,

--- Tony Wyatt <wyattaw at optushome.com.au> wrote:
> Hi Dalibor,
> 
> On 13-May-03, you wrote:
> 
> >> Is there a utility around that would read my compiled classfiles and tell
> >> me their contents? I'm now at the stage of trying to find out why the
> >> jitters don't produce the right code on the m68k Amiga platform.
> >> Comparing the class file from the interpreter with that from the jitters,
> >> I find consistent differences, but I really need to know the contents of
> >> the whole compiled class.
> >> 
> >> If there isn't anything available, I shall have to write one.
> > 
> > If you're talking about a java bytecode disassembler, there are many such
> > tools. Kaffe has its own (from kopi), it's called javap. It disassembles
> > class files to *.ksm files, in the kopi bytecode assembler syntax.
> > 
> No, that's not what I want. javap merely prints out the declarations of the
> class and methods, no decode of the file contents.

Right, I changed javap after 1.0.7 to execute at.dms.dis.Main . That should
work with 1.0.7 as well, and give you a bytecode disassembler.

cheers,
dalibor topic

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com




More information about the kaffe mailing list