Interface gcj-compiled library with Java programs in a runtime (other than gij)?
Bryce McKinlay
bmckinlay@gmail.com
Tue Feb 14 10:31:00 GMT 2012
On Tue, Feb 14, 2012 at 9:47 AM, Andrew Haley <aph@redhat.com> wrote:
>> On 02/13/2012 06:32 PM, David Daney wrote:
> > I am just going from memory here, but I think that the interpreter can
> > only call native code via JNI.
>> Ahh, if that were really true, interpreted code couldn't call
> Object.<init>() ...
David is saying that "native" methods in interpreted classes can't be
implemented with CNI. Which is true, I think.
Obviously, the interpreter can call native CNI methods in other
(non-interpreted) classes, like Object. Hence the trampoline example.
Bryce
More information about the Java
mailing list