This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Getting gcj to compile what it finds when scanning
Bryce McKinlay wrote:
Yeah, it would probably require major changes to GCC's backend machinery
to allow the front end to generate multiple .o files from one
invocation. I suppose the driver could call jc1 to get a list of
dependencies, then invoke it once for each file that it gets back - but
this would be much slower than a single jc1 invocation, and I think the
benefits of doing this are questionable.
The Gcc "compile server" branch allows the gcc core to be invoked
multiple times, yielding separate assembler files. However, it is
focused on C/C++, concentrating on remembering of include file contents.
But we also needed to make changes to the toplevel code which effects
all languages, and could be used for Java as well.
Getting it all working won't be easy. However, conventrating on Java
would be a lot simpler than C/C++, and might be a useful stepping
stone to a more general compile server.
--
--Per Bothner
per@bothner.com http://per.bothner.com/