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




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

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



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