java diablo-jdk

Jung-uk Kim jkim at FreeBSD.org
Thu Oct 11 00:35:52 UTC 2012


-----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-----


More information about the freebsd-java mailing list