Adriaan van Os wrote:
Frank Heckenbach wrote:
some time cleaning (most of) it up. In retrospect, I suppose writing the frontend from scratch would have been less work in total.
Wouldn't this apply also to converting to C++ rather than to e.g. LLVM assembly ? C++ does seem attractive with all that's already there -- but you know beforehand that you will need tricks -- and you also know that tricks in the end "corrupt" software.
My point was about "tricks" (I'd rather say kludges) in the compiler/converter itself. Tricks in the output code, while surely not nice, are IMHO less problematic, since the converter code that outputs them can still be written cleanly (and changed when the tricks become unnecessary).
So far, the only trick I know we'd need is for the trampoline case (and AFAIK, C++0x would eliminate the need for a trick here).
Frank