This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
.class code optimization
- From: Andrew Haley <aph at redhat dot com>
- To: Lapo Luchini <lapo at lapo dot it>
- Cc: java at gcc dot gnu dot org
- Date: Fri, 11 Oct 2002 16:06:20 +0100 (BST)
- Subject: .class code optimization
- References: <3DA6DCF4.6030507@lapo.it>
Lapo Luchini writes:
> Hi, I guess the question has alerady been anwered on the ML but I can't
> find it using ht:/Dig.
> Is there any specific reason .class produced by GCJ are no better (well,
> only slightly better in fact) that javac ones?
> Shuoldn't dead code elimination and other optimization come automatical
> using GCC?
No, because `gcj -C' doesn't run gcc's optimizers. That's because
most of the optimizers run on RTL, and `gcj -C' never produces RTL.
> But maybe Java standard needs unoptimized classes to have better
> performance in the HotSpot VM maybe..?
> Or just the work to enable optimization hasn't yet been done?
Because, as far as we are concerned, there's no point.
Andrew.