PCH for java - is this a good idea?

Martin Kahlert martin.kahlert@infineon.com
Wed Feb 21 07:13:00 GMT 2001


When gcj compiles java files, it has to make sure, that all the called
functions and classes are present with the correct signatures.
So i assume, it reads the file goodstuff.java if it comes around something like

goodstuff gs = new goodstuff();

So if i have a big number of files and goodstuff is some kind of a really
large support class, the compilation of every file has to read goodstuff.java
(if gcj is called from a makefile for example). This will last a long time.

So would it be a good idea, to build some kind of a compressed header file
for scanned .java files? Perhaps the PCH support of C/C++ (which seems to
be worked on) could be reused?


The early bird gets the worm. If you want something else for       
breakfast, get up later.

More information about the Java mailing list