PCH for java - is this a good idea?

Jeff Sturm jsturm@one-point.com
Wed Feb 21 09:13:00 GMT 2001


On 2001年2月21日, 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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /