This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Reconsidering gcjx


>>>>> "Paolo" == Paolo Bonzini <bonzini@gnu.org> writes:

Paolo> How big would the mini Java-runtime be?  A bytecode-interpreter, with
Paolo> only support for two or three packages, using a simple Baker or
Paolo> mark'n'sweep GC, could be done in 10,000 lines of C code or maybe less.

The problem with a mini JVM in the bootstrap is that it will also need
a class library, which has to come from somewhere.

Bootstrapping an ecj-based gcj is not as hard as bootstrapping Ada.
The class->object compiler will still be C code, so all you will need
to bootstrap is the class files for the library.  These are platform
independent, and can be built with any java compiler on any machine.

We could even check in the class files, if need be.

Tom


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