This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]