.class code optimization

Jeff Sturm jsturm@one-point.com
Fri Oct 11 12:08:00 GMT 2002


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




More information about the Java mailing list