From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21622 invoked by alias); 14 Feb 2012 10:31:41 -0000 Received: (qmail 21611 invoked by uid 22791); 14 Feb 2012 10:31:40 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GC X-Spam-Check-By: sourceware.org Received: from mail-yw0-f47.google.com (HELO mail-yw0-f47.google.com) (209.85.213.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 14 Feb 2012 10:31:24 +0000 Received: by yhfq46 with SMTP id q46so2925617yhf.20 for ; Tue, 14 Feb 2012 02:31:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.196.228 with SMTP id ip4mr32842852igc.28.1329215483537; Tue, 14 Feb 2012 02:31:23 -0800 (PST) Received: by 10.50.114.38 with HTTP; Tue, 14 Feb 2012 02:31:23 -0800 (PST) In-Reply-To: <4F3A2DC7.3000502@redhat.com> References: <4F387D25.40406@gmail.com> <1586090240029193189@unknownmsgid> <4F389217.7040506@gmail.com> <4F395754.3070407@gmail.com> <4F3A2DC7.3000502@redhat.com> Date: Tue, 14 Feb 2012 10:31:00 -0000 Message-ID: Subject: Re: Interface gcj-compiled library with Java programs in a runtime (other than gij)? From: Bryce McKinlay To: GCC Java Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2012-02/txt/msg00013.txt.bz2 On Tue, Feb 14, 2012 at 9:47 AM, Andrew Haley 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.() ... 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