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 OpenJDK's compiler replace ECJ for GCJ?


I started working down this path yesterday but I didn't get very far.  I
downloaded the 30 Nov source zip and compiled it according to the
instructions using the 1.5.0_10 JDK.  When I executed it some class
loader barfed with an unsupported class version error.  It executes just
fine using the 30 Nov snapshot of the 1.6.0 JDK.  The code it generates
also requires the 1.6 JDK.

What does this mean?

One shouldn't assume that I know anything but I don't believe there is
any good reason why the compiler shouldn't execute with the 1.5 JDK or
gij for that matter.  I don't believe the JVM specification has changed.
It appears, though, that it's going to take more work than just making
changes similar to the ones Tom told me he made to the eclipse compiler
code to fit it into gcj.

I will proceed to get it to execute with gij.  Any tips or advice are
welcome.

Doug

On Tue, 2006-12-05 at 11:08 -0700, Tom Tromey wrote:
> >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
> Andrew> There's no reason why anyone should not experiment with using Sun's
> Andrew> javac as a front-end for gcj.  It would be interesting.  It may
> Andrew> eventually prove to be the best choice for gcj.
> 
> Yeah, this would make a nice project for someone.
> It shouldn't really be that hard to do.  Anyone interested, feel free
> to send me email & I can tell you where to start looking.
> 
> Tom


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