Can gcj be a Java front-end for llvm as well?

Yuri yuri@rawbw.com
Fri Oct 16 20:18:00 GMT 2009


When I look at GCJ I see that it's a very powerful technology, 
generating gcc memory structures to represent code in the end and using 
gcc mechanism to write final binary objects.

Since most work that GCJ does isn't directly related to the rest of gcc, 
it seems to be possible to have the code generation phase have two 
options: gcc and llvm. So it can be a Java frontend for llvm compiler as 
well.
The rationale for this is that llvm in many cases produces more optimal 
code and it's good to have such option if it doesn't come at too high price.

Does this suggestion seem reasonable?

Yuri



More information about the Java mailing list