The only C++ compiler I've ever heard of that used a C compiler as its
code generator was Cfront (and even that was quite unusual: it wasn't a
preprocessor in any sense, in that it did full translation and just
happened to emit C code: that C could would never contain e.g. any syntax
errors unless Cfront was buggy).
Posted Jun 5, 2008 21:06 UTC (Thu) by oak (guest, #2786)
[Link]
> The only C++ compiler I've ever heard of that used a C compiler as its
code generator was Cfront
I have some faint recollections that some other C++ compilers were derived
from that and then there was also Glockenspiel C++ and stuff using the EDG
C++ frontend like Comeau C++.
> (and even that was quite unusual: it wasn't a preprocessor in any sense,
in that it did full translation and just happened to emit C code:
Yes, sorry my terminology was bad. But isn't this also how Vala works?