3 ms·
No, but Lua works that way.
by silentbicycle 15y ago
No, but Lua works that way.
- barrkel 15y agoIt's easy to write very small interpreters, even ones that JIT code. So much so that some approaches to shrinking software have historically been to write a little VM interpreter, and compile the source code to target that rather than the actual CPU. A compiler that produces code that no longer requires a runtime (in the VM sense - inverted control) is slightly more work. Turbo Pascal's code generation was simple and naive. It had little optimization. It literally output the machine code as it parsed. There was no AST, not even an expression tree. (I have the source code to the final version of the Turbo Pascal compiler on my disk. It was used for Delphi 1.)
- outworlder 15y ago>(I have the source code to the final version of the Turbo Pascal compiler on my disk. It was used for Delphi 1.) Is that still under copyright? And chance it could be released?
- barrkel 15y agoAs far as I know it is still under copyright. Anders Hejlsberg's name is in the comment headers; it was largely rewritten in 1986 and 1987 for TP4. I believe it belongs to Embarcadero, the company I work for, after they bought the developer tools division from Borland. I have no idea about releasing it. I'm entirely the wrong end of the company to ask about it.