PCH for java - is this a good idea?
Martin Kahlert
martin.kahlert@infineon.com
Wed Feb 21 23:34:00 GMT 2001
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.
More information about the Java
mailing list