From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32611 invoked by alias); 12 Jul 2007 14:00:01 -0000 Received: (qmail 32602 invoked by uid 22791); 12 Jul 2007 14:00:01 -0000 X-Spam-Status: No, hits=1.5 required=5.0 tests=AWL,BAYES_00,BOTNET,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,RCVD_IN_NJABL_DUL,RCVD_IN_PBL,SARE_RMML_Stock10 X-Spam-Check-By: sourceware.org Received: from cpc1-cmbg8-0-0-cust558.cmbg.cable.ntl.com (HELO zebedee.littlepinkcloud.COM) (82.6.106.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jul 2007 13:59:56 +0000 Received: from littlepinkcloud.COM (localhost.localdomain [127.0.0.1]) by zebedee.littlepinkcloud.COM (8.13.8/8.13.5) with ESMTP id l6CDxpRk027496; Thu, 12 Jul 2007 14:59:51 +0100 Received: (from aph@localhost) by littlepinkcloud.COM (8.13.8/8.13.5/Submit) id l6CDxoE0027493; Thu, 12 Jul 2007 14:59:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18070.13270.760951.958499@zebedee.pink> Date: Thu, 12 Jul 2007 14:00:00 -0000 From: Andrew Haley To: Andrew Cagney Cc: frysk@sourceware.org Subject: Re: cni vs jni In-Reply-To: <46963159.30402@redhat.com> References: <4694F12E.6080406@redhat.com> <18069.3978.11236.967269@zebedee.pink> <46963159.30402@redhat.com> X-Mailer: VM 7.19 under Emacs 22.0.93.1 Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00095.txt.bz2 Andrew Cagney writes: > Andrew Haley wrote: > > Andrew Cagney writes: > > > [This was today's technical topic] > > > > > Possible options > > > > > > - simplistically translate the bindings into JNI > > > > > > - push more core code into C++ and move the bindings to a higher layer > > > > > > - status quo > > > > Or port CNI to Sun's Java. It's far from impossible, and as far as I > > an see the only real obstacle is getting buy-in from the GNU C++ > > maintainers. > > > How does BC (binary compatible abi) fit into all this? > (I know frysk's build system needs to be changed, but there are > compatibility issues?) Interesting question. To be absolutely clear: you can use CNI with BC-compiled code right now, given the right compiler options, but you end up with CNI code that has to be recompiled if your Java code changes. We could change CNI so that CNI code didn't have to be recompiled when the Java code changes, and this would be a Good Thing, but it would be a bit of effort. Andrew. -- Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK Registered in England and Wales No. 3798903