From owner-freebsd-java@FreeBSD.ORG Thu Oct 11 00:35:52 2012 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 561A161E for ; Thu, 11 Oct 2012 00:35:52 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from hammer.pct.niksun.com (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 011898FC19; Thu, 11 Oct 2012 00:35:51 +0000 (UTC) Message-ID: <50761447.1010609@FreeBSD.org> Date: Wed, 10 Oct 2012 20:35:19 -0400 From: Jung-uk Kim User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Achilleas Mantzios Subject: Re: java diablo-jdk References: <20121009231547.1f4cfa57@davenulle.org> <5074C1D7.3040209@FreeBSD.org> <1827608.yJKzdi0Quu@smadev.internal.net> In-Reply-To: <1827608.yJKzdi0Quu@smadev.internal.net> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2012 00:35:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2012-10-10 02:37:50 -0400, Achilleas Mantzios wrote: > Do ECJ or GCJ produce same quality class bytecode as javac? Depends on your definition of quality... AFAICT, ECJ can produce "reasonably" good bytecode but GCJ looks unstable some times. However, GCJ can produce (platform-dependent) native code, i.e., AOT ("ahead-of-time") compilation. OTH, ECJ is written in Java, so you need a JVM to drive it. GCJ has a built-in JVM (GIJ on top of libgcj) but it is extremely slow because it does not have a JIT compiler. GCJ uses ancient and buggy ECJ (modified by GNU people) for its parser. ECJ has vibrant community but GCJ is almost dormant. So on and so forth... It really depends on your needs. BTW, Sun/Oracle OpenJDK is a *reference* implementation for Java SE specification. Therefore, comparison is meaningless, I guess. ;-) Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlB2FEcACgkQmlay1b9qnVN1FACdHMyCiqiW9iJcSvL9sljqg9DH vc0AnA4QlVrsx4B1E3PzTc5TBdHP3xV0 =Ql0z -----END PGP SIGNATURE-----