This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: PCH for java - is this a good idea?
- To: Martin Kahlert <martin dot kahlert at infineon dot com>
- Subject: Re: PCH for java - is this a good idea?
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Wed, 21 Feb 2001 12:13:40 -0500 (EST)
- cc: java at gcc dot gnu dot org
On Wed, 21 Feb 2001, Martin Kahlert wrote:
> 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.
In my large projects I compile in two passes, first with gcj -C to create
.class files. You'll find that gcj can parse bytecode MUCH faster than
java source.
> 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?
That's essentially what .class files already do.
Jeff