Loading...

java@gcc.gnu.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: Interface gcj-compiled library with Java programs in a runtime (other than gij)? Bryce McKinlay Tue Feb 14 03:00:28 2012

On Tue, Feb 14, 2012 at 9:47 AM, Andrew Haley <[EMAIL PROTECTED]> 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