From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Wed Feb 17 1999 - 05:17:14 EST
Tim had written:
>> They expect any native code their classes call to be linked with
>> the library - so they end up with real calls to library functions.
On Feb 16, 1999, Godmar Back <gback@cs.utah.edu> wrote:
> I'm not sure I understand this. Say you precompile java.lang.System,
> which has a native call to initProperties0 in its static initializer.
> gcj requires that you have a library functions with that name that
> uses a different calling convention than KNI/JNI, correct?
> So couldn't we just create one with kaffeh, compile it, and link it to
> the .so file?
Sounds reasonable to me. This function could be a simple dispatcher,
that looked up the Kaffe method address and called the actual code.
It can't be a trampoline because we can't change the address of the
caller, but it would be damn nice if we could...
-- Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org} oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org} Universidade Estadual de Campinas, SP, Brasil
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:58:09 EDT