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: Can gcj be a Java front-end for llvm as well?


Mark Wielaard wrote:
When gcj/gcc produces sub-optimal code wouldn't it make more sense to
just fix gcj? Can you give some examples of such code?


It does make sense to fix gcj and gcc.
However, since gcj only connects to gcc for code generation, it can also serve as a java frontend for llvm.
llvm obviously needs Java frontend (just like frontends for other common languages). And why to redevelop it from scratch, if gcj is almost a perfect fit?


I can't give a particular example of performance here now. But pretty much every time when I compiled large (c++) project with llvm I got better runtime compared to gcc. Usually 10-20%.

I don't try to put blame on gcc here. I am just saying that the more uses gcj finds the better.

Yuri


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