Dear Frank,
Yes, it's possible, but it's IMHO not conformtable.
Okay, I think I understand the extent of the problems with re-writing the GPC C-code in Pascal, and I appreciate that there may not be enough development hours available.
I am going to make sure that I have a multi-platform Pascal compiler, even if I have to re-write the entire thing myself. I agree with Pascal Viandier: GPC is by far the best Pascal compiler I have ever used, and I have no intention of taking a step backwards to C++ or another Pascal compiler.
One note: For any project that I'd be involved in, I'd insist that the parser is created by a tool, not hand-made.
I agree. Sound like a lot less work too.
It would be more rewriting than translating, i.e. understand what the C code does (with the backend)
If we create a self-compiling compiler, do we need our own assembler written in Pascal as well? Or can we produce GCC-style objects and use any GCC linker and assember to produce our executable? What is it in the GCC interface with Pascal that keeps changing? Is it the object format? You give one example to do with restricted language flags in your report. Perhaps you could give us some more examples.
Yours, Kevan