[kaffe] Problem while compiling Kaffe for Interpreting

Dalibor Topic robilad at yahoo.com
Sun Apr 28 01:39:19 PDT 2002

Hi Strajit,

--- Satrajit Chatterjee <satrajit at vsnl.com> wrote:
> >   I am trying to compile Kaffe 1.0.6 for
> interpreted mode, 
> > instead of JIT. I have replaced corresponding
> lines in 
> > kaffe/kaffevm/Makefile by the corresponding lines
> in 
> > kaffe/kaffevm/Makefile.frag.
> > 
> >   Compilation is fine, but in the link stage there
> are the 
> > following errors:
> > 
> > ../kaffevm/.libs/libkaffevm.so: undefined
> reference to `virtualMachine'
> > ../kaffevm/.libs/libkaffevm.so: undefined
> reference to 
> > `soft_fixup_trampoline'
> > 
> >   Does anyone know how to fix these? I suspect its
> just bit rot. 

If you want to compile kaffe for interpreter mode, the
easiest way to do it is to configure it with the
interpreter engine. Run ./configure --help in kaffe
source directory for more information on how to do it.

> > PS: I am trying to get a trace of the actual byte
> codes executed 
> > (and memory references) and using the debugging
> feature of 
> > Kaffe's interpreter seemd like the best way. Does
> anyone know of 
> > any simpler way?

You should also configure kaffe with debugging
enabled. Then run your program with the option
-vmdebug list to see what debugging options are
available. In your case I recommend taking a look at
the INT_* options, like  INT_INSTR.

If your program is crashing somewhere, then running
kaffe a debugger is a much better way to find out what
is going on. Read FAQ/FAQ.debugging and

Hope this helps,

dalibor topic

Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

More information about the kaffe mailing list