Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Oct 2012 20:35:19 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Achilleas Mantzios <achill@smadev.internal.net>
Cc:        freebsd-java@freebsd.org
Subject:   Re: java diablo-jdk
Message-ID:  <50761447.1010609@FreeBSD.org>
In-Reply-To: <1827608.yJKzdi0Quu@smadev.internal.net>
References:  <20121009231547.1f4cfa57@davenulle.org> <5074C1D7.3040209@FreeBSD.org> <1827608.yJKzdi0Quu@smadev.internal.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50761447.1010609>