This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Can gcj be a Java front-end for llvm as well?
- From: Yuri <yuri at rawbw dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 16 Oct 2009 13:18:10 -0700
- Subject: Can gcj be a Java front-end for llvm as well?
- Reply-to: yuri at rawbw dot com
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