Quote Originally Posted by savage
But if the C++ source code is opensourced, it could easily be ported to Pascal and maybe even show horned into the FPC compiller an additional output option.
I doubt it is recyclable, every compiler has its own classes for symbols and system to walk trees etc. I think that porting to Pascal is not worth the trouble, at least not for the sake of FPC.

Of course the C++ code could be a great resource if sb wanted to make a bytecode backend for FPC, but I doubt that reuse is worthwhile, compared to redoing it for FPC with the C++ printout lying next to it.

(And that doesn't even tackle usability issues, like the fact that bytecode is a whole different field. Most non trivialexisting pascal code wouldn't compile probably due to pointer or even assembler use. Those are treated in

http://www.hu.freepascal.org/faq.var#dotnet
)