This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PCH for java - is this a good idea?




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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]