T
tin
Hi everyone,
I've read a few rumours on the web about ejc, a natively build version
of the Eclipse compiler. Apparently, someone managed to compile the
eclipse compiler using GCJ and it runs really fast:
http://sources.redhat.com/ml/rhug-rhats/2003-07/msg00008.html
Has anyone managed to repeat this?
It appears that this compiler is distributed with some Linux versions.
A new fast compiler would be great as Jikes is no longer being
maintained and the world is drifting towards Java 1.5, unsupported by
jikes. If the native Eclipse compiler indeed is super fast and
compiling on various platforms is possible, I would like to make it
publicly available on many platforms under the Eclipse open source
licence.
Anyway, has anyone managed to repeat this? So far, I have managed to
pull out all the compiler source code and compile it into normal java
bytecodes. As it is, this runs slightly slower than javac and
significantly slower than jikes. As far as native compilation goes, the
program compiles but crashes. I believe it has something to do with
dynamic loading of resources (normally done from the CLASSPATH). I have
no experience with GCJ or native Java compilation so I may be missing
out a step (compiling the resources maybe?)
the command i am using (on Windows) is
gcj ejc.jar --main=org.eclipse.jdt.internal.compiler.batch.Main -o
ejc.exe
(where ecj.jar contains the required CLASS files + the resource files)
If anyone has managed to compile and run the compiler successfully or
is interested in helping out with this, any help would be appreciated.
Cheers
Tin
I've read a few rumours on the web about ejc, a natively build version
of the Eclipse compiler. Apparently, someone managed to compile the
eclipse compiler using GCJ and it runs really fast:
http://sources.redhat.com/ml/rhug-rhats/2003-07/msg00008.html
Has anyone managed to repeat this?
It appears that this compiler is distributed with some Linux versions.
A new fast compiler would be great as Jikes is no longer being
maintained and the world is drifting towards Java 1.5, unsupported by
jikes. If the native Eclipse compiler indeed is super fast and
compiling on various platforms is possible, I would like to make it
publicly available on many platforms under the Eclipse open source
licence.
Anyway, has anyone managed to repeat this? So far, I have managed to
pull out all the compiler source code and compile it into normal java
bytecodes. As it is, this runs slightly slower than javac and
significantly slower than jikes. As far as native compilation goes, the
program compiles but crashes. I believe it has something to do with
dynamic loading of resources (normally done from the CLASSPATH). I have
no experience with GCJ or native Java compilation so I may be missing
out a step (compiling the resources maybe?)
the command i am using (on Windows) is
gcj ejc.jar --main=org.eclipse.jdt.internal.compiler.batch.Main -o
ejc.exe
(where ecj.jar contains the required CLASS files + the resource files)
If anyone has managed to compile and run the compiler successfully or
is interested in helping out with this, any help would be appreciated.
Cheers
Tin