This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Reconsidering gcjx
- From: Tom Tromey <tromey at redhat dot com>
- To: Paolo Bonzini <bonzini at gnu dot org>
- Cc: java at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: 27 Jan 2006 11:34:28 -0700
- Subject: Re: Reconsidering gcjx
- References: <m3d5iewn0r.fsf@localhost.localdomain> <43D97AEA.50909@bothner.com> <drckhs$j5p$1@sea.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "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