This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
PCH for java - is this a good idea?
- To: java at gcc dot gnu dot org
- Subject: PCH for java - is this a good idea?
- From: Martin Kahlert <martin dot kahlert at infineon dot com>
- Date: Wed, 21 Feb 2001 16:13:21 +0100
- Reply-To: martin dot kahlert at infineon dot com
Hi!
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();
gs.do_something();
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?
Thanks,
Martin.
--
The early bird gets the worm. If you want something else for
breakfast, get up later.