On Sun, Jun 7, 2015 at 2:28 PM, Michael Van Canneyt <mich...@freepascal.org> wrote:
As far as I can see, this is not correct. The rtl units have been > hand-crafted. > Many of them contain assembler code, and this is simply impossible to > translate. Ah, I see. Then how p2js provide its RTL? Is it also hand-crafted? That's a lot of works! I have asked Florian to take a look at integrating it back in the compiler > (that is be. > I myself will take some ideas from it and see how far it gets me in the > external tool. > The var param support was bugging me, and they use an interesting > technique for it with closures. I hope this will help pas2js to become an advance pascal to javascript compiler. This will help us creating a full web application using pascal from end to end. And also because I simply hate to learn JavaScript. It's a mess. :D By the way, it seems almost impossible to compile p2js on linux or osx. p2js was written to only target Windows, although it's using FPC. This is very unfortunate. :( -- -Bee-
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal