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, Feb 21, 2001 at 10:23:36AM -0700, Tom Tromey wrote:
> >>>>> "Martin" == Martin Kahlert <martin.kahlert@infineon.com> writes:
> 
> Martin> So would it be a good idea, to build some kind of a compressed
> Martin> header file for scanned .java files? Perhaps the PCH support
> Martin> of C/C++ (which seems to be worked on) could be reused?
> 
> We already have PCH, in the form of .class files.

Isn't a class file a form of an object file (with a lot of the virtual
machine's assembler?)

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.
The only difference would be, that a .class file has to have the same name
as the class, which is not the case in other languages.

Thanks for your reply,
Martin.

-- 
The early bird gets the worm. If you want something else for       
breakfast, get up later.


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