.class code optimization
Andrew Haley
aph@redhat.com
Fri Oct 11 08:05:00 GMT 2002
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.
More information about the Java
mailing list