This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: .class code optimization
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Adam Megacz <gcj at lists dot megacz dot com>, Andrew Haley <aph at redhat dot com>, Lapo Luchini <lapo at lapo dot it>, <java at gcc dot gnu dot org>
- Date: Fri, 11 Oct 2002 15:08:48 -0400 (EDT)
- Subject: Re: .class code optimization
On 11 Oct 2002, Tom Tromey wrote:
> It is probably easier to write a new tool that optimizes the .class
> files directly than it would be to teach gcj how to do optimizations
> before generating .class files.
Someone already mentioned javago.
ISTR that Sun's javac once performed optimizations, including inlining
across translation units. There were problems with it, like unverifiable
bytecode: class A inlines method B.b(), but B.b() accesses fields private
to B, etc.
At some point (1.2?) javac's -O flag became a no-op.
Jeff