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: question about ecj integration


Jakob Praher writes:
 > hi,
 > 
 > I am sorry to not attending this years FOSDEM. I know it was great. :-(
 > I hope to make it next year.
 > 
 > Since you really consider using ecj as the "jstage2" java frontend, I
 > have a question:
 > 
 > How do you generate code with ecj?

Bytecode is the internmediate langauge.

source -> bytecode -> asm -> object
       ecj        jc1     as

 > -> Do you have a CNI interface to gcc's TREE language?
 > -> Do you directly generate gnu assmembler (which is not a real option,
 > since you miss all the GIMPLE/SSA and RTL optimization passes)

We read bytecode and write asm.

 > I think I remember to having heard that you use the jc1 compiler to
 > compile the ecj source files to native code in the first run.

That's what we do at the monment, yes.  But if we have ecj integrated
into gcj it can compile itself, so we won't be limited to 1.4.

 > Are the folks at eclipse restricting ecj to java 1.4 language features?
 > Or do you provide patches for converting the ecj features to whatever
 > jc1 is able to compile?

We don't need to do that.  Once we have ecj compiled into portable
bytecode we compile that.  We don't have to compile ecj from source
when bootstrapping, as long as we have an ecj binary.

Andrew.


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