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 -- Frank Heckenbach, f.heckenbach@fh-soft.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8