This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: .class code optimization
- From: Lapo Luchini <lapo at lapo dot it>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, Adam Megacz <gcj at lists dot megacz dot com>, Andrew Haley <aph at redhat dot com>, java at gcc dot gnu dot org
- Date: Sat, 12 Oct 2002 09:10:27 +0200
- Subject: Re: .class code optimization
- References: <Pine.LNX.4.44.0210111459420.8371-100000@ops2.one-point.com>
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)