Kiyo Inaba wrote: | | Are there anyone who can describe how sysdepCallMethod in intrp mode? | Godmar may be able to do :-) | | >1. Re-write sysdepCallMethod() for m68k to always pick up floating point | > results from fp0, and to not clobber registers. | | How do you write JNI codes with this new convention? JNI calls made from Kaffe JIT code are handled in callMethodA(). This function uses sysdepCallMethod() to make the call. Right now, it looks like callMethodA() handles JNI code and JIT code in the same way, except that the JNI environment must be inserted for calls to JNI code. It would also have to handle the return value. This is not a problem, since I am proposing that sysdepCallMethod() do this. It's either that, or make extensive OS-dependent changes to the JIT code generator itself. Which do you prefer?