[kaffe] Re: Kaffe and MIPS CPUs

Mark and Janice Juszczec juszczec at hotmail.com
Tue Jul 9 12:05:56 PDT 2002

Hello all

Since there have been some posts about Kaffe and MIPS, I thought I'd let 
everyone know what I'm up to.  A side project a work has me trying to 
compile Kaffe v1.0.7 to run on a Helio pda.  It runs
a 75MHz Philips R3912 little endian mips processor.

In order to get the hang of cross compiling something as large and involved 
as Kaffe, I decided to start by compiling v1.0.5.  Its runs on MIPS, since I 
downloaded the binary and libraries from kaffe.org.

I build the cross compile toolchain out of:


After some trial and error, I've come up with the following configure call:

AR=/usr/local/mipsel-linux/bin/ar RANLIB=/usr/local/mipsel-linux/bin/ranlib  
STRIP=/usr/local/mipsel-linux/bin/strip CXX=/usr/local/mipsel-linux/bin/gcc
../kaffe-1.0.5/configure --target=mipsel-linux --host=i686-pc-linux-gnu 
--with-libraries=/usr/local/mipsel-linux/lib --with-engine=jit3 

This compiles up to kaffe/kaffevm/jit3/machine.c which chokes on
config/i386/trampolines.c giving:

/tmp/ccB9xikZ.s: Assembler messages:
/tmp/ccB9xikZ.s:12663: Error: unrecognized opcode `call 
/tmp/ccB9xikZ.s:12665: Error: unrecognized opcode `popl %ecx'
/tmp/ccB9xikZ.s:12667: Error: unrecognized opcode `jmp *%eax'

I don't have a mips assembly reference handy, but I'm guessing this file 
contains some intel assemble code that needs to be rewritten.

I'm more concerned that I'm compiling something that lives in config/i386.  
Is this an error in my config?

Jim, thanks for the reference to the Pocketlinux stuff.  I'll do some 
comparisons and see if anything suggests itself.


MSN Photos is the easiest way to share and print your photos: 

More information about the kaffe mailing list