Re: Interface gcj-compiled library with Java programs in a runtime (other than gij)?

Bryce McKinlay <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <CALUNu-r9edm5ot-k8Kq-RoQ0cJ8jKFCT0e5yWi7p+chEo1PbbA@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.