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.Originally Posted by savage
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
)
Bookmarks