From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FBZeT-0007XY-Rb for garchives@archives.gentoo.org; Tue, 21 Feb 2006 15:42:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1LFegbs017950; Tue, 21 Feb 2006 15:40:42 GMT Received: from rasmus.uib.no (rasmus.uib.no [129.177.13.13]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1LFectl018459 for ; Tue, 21 Feb 2006 15:40:41 GMT Received: from nille.uib.no (smtp.student.uib.no) [129.177.13.20] by rasmus.uib.no with esmtp (Exim 4.34) id 1FBZcz-0004L4-6A; Tue, 21 Feb 2006 16:40:38 +0100 Received: from apal.ii.uib.no ([127.0.0.1]) [129.177.16.81] by smtp.student.uib.no with asmtp (Exim 4.34) id 1FBZcy-0007Cw-Mv; Tue, 21 Feb 2006 16:40:37 +0100 Message-ID: <43FB34FB.4030807@gentoo.org> Date: Tue, 21 Feb 2006 16:42:51 +0100 From: Karl Trygve Kalleberg Organization: Gentoo Foundation User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 To: Hanno Meyer-Thurow CC: Gentoo Java Subject: Re: [gentoo-java] work on gcj for gentoo References: <20060221160425.b1478bdc.h.mth@web.de> In-Reply-To: <20060221160425.b1478bdc.h.mth@web.de> X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-checked-clean: by exiscan on rasmus X-Scanner: 44e2752274faf58e1be61359b4b1d1e7 http://tjinfo.uib.no/virus.html X-UiB-SpamFlag: NO UIB: -9.4 hits, 8.0 required X-UiB-SpamReport: spamassassin found; -9.0 Message received from UIB -0.4 Did not pass through any untrusted hosts X-Archives-Salt: b074c6c6-358f-4f7a-97a3-087b57dc4393 X-Archives-Hash: 6b2b07f1bcbaf044861d459de87e8a0a Hanno Meyer-Thurow wrote: > Hi list! > I would like to work on gcj for Gentoo. Excellent! We need all the help we can get. > I thought in a gcj-4.1 / ecj combination. Use ecj to bytecompile Java > source to jar with gcj as backend. Then use gcj to create native > executables or libraries out of that jar files. Creating a database > via gcj-dbtool for jar / native code resolution. If possible Java to > native. The problem with this approach is your resulting programs will be potentially rather slow. While gcj can indeed compile .class files (inside .jars) to binary, I've been told it can produce the most efficient of results. The source code is much richer in structure than the bytecode, and opens up for many effective optimizations which could only be reached through "idiom-recognition" (which doesn't exist for gcj yet, afaik) of the .class files. I suspect that you shouldn't give up on using gcj as a source compiler quite yet. This story may evolve with the whole ecj/gcjx/GPLv3 debate. Just my 0.02CAD, -- Karl T -- gentoo-java@gentoo.org mailing list