This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Putting C++ code into gcc front end



I still think this spels out the solution, rewrite the libgcj checker in C, wrap in C++ use in libgcj, and the c part in the frontend.


Simple.

/ Lars Segerlund.

Michael Matz wrote:
Hi,

On 3 Mar 2003, Tom Tromey wrote:


However, the libgcj verifier is written in C++.  So, if I were to do
this, it would mean adding some C++ code to the gcj front end.

In case it matters, the C++ code in question is in gcc/libjava/verify.cc.


Regarding the use of C++ in the non-{C,C++} frontends I'm undecided.  But
if something like verify.cc gets into bootstrap process, we somewhen need
to speed up the compiler.  verify.cc and interpret.cc are two of the most
time suckers in compiling the compiler generally and libjava especially.
I wouldn't like to have this code compiled three times.


Ciao, Michael.




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