This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]