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]

.class code optimization


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.


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