.class code optimization

Lapo Luchini lapo@lapo.it
Sat Oct 12 00:10:00 GMT 2002

>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.
I see.
But there isn't only inlining... what about dead code elimination? loop 
unrolling? other optimizations?
Anyone knows of a tool to reduce i.e. thing like a=0; a=1; a=1; to a 
simple a=1; (stupid example, ok...)?


Lapo 'Raist' Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)

More information about the Java mailing list