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?


Martin Kahlert <martin.kahlert@infineon.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.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/


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