PCH for java - is this a good idea?
Wed Feb 21 23:41:00 GMT 2001
Martin Kahlert <email@example.com> writes:
> So, if i understand you correctly,
> you could argue equally well, that instead of implementing precompiled
> headers for C++, gcc could read in already generated .o files, because the
> functions inside these files contain (via name mangling) the header information.
Name mangling does not contain enough information. But you could
read the debug symbols.
Two big problems though:
* C and C++ have conditional compilation, which complicates things.
This is not an issue for Java.
* A given header file does not map to a specific .o file, so it is
more-or-less impossible to resolve a request for a .h file with a
.o containing the needed information. This is not an issue for Java.
More information about the Java