Between 1988 and 1995 Jack Crenshaw posted on Usenet "Let's Build a Compiler", a tutorial series on writing a Pascal compiler that generates 68K Assembly. 35 years later Eli Bendersky revisited the series and rewrote the compiler in Python to generate WebAssembly.
I can build it on FPC, but can’t run. Removing call to ReadConfig shows gfx issues and input gets messed. I can’t find a way to debug the realmode properly
« #Pascal Marichalar (CNRS, IRIS), discutera de son ouvrage #LaMontagneAuxÉtoiles. Enquête sur les terres contestées de l'astronomie (La Découverte, 2024). »
@nixCraft Never used that newfangled stuff - I 👴🏻started using TP3 at
@KIT_Karlsruhe (then still Universität Karlsruhe) in 1987 and changed (unenthusiatically) to #FORTRAN after TP5.
Still have the complete boxes with disks and books of TP3 and TP5 here somewhere. #Pascal#TurboPascal#Retrocomputing
Free Pascal Compiler outputs a working WASM binary on AmigaOS, with no external tooling/dependencies. I doubt anyone has ever tried this before (maybe Marcus Sackrow, my partner in FPC-Amiga crimes did?), but it works, first try.
Free Pascal Compiler (current git main), running under AmigaOS 3.1 in FS-UAE, created a simple "hello, world!" WASM binary executable, which was then successfully ran by wasmtime in a macOS shell.
Random pondering about sustainable software, and operating systems like Project Oberon, Forth, Smalltalk, and the Lisp Machines .. Systems that a single individual can maintain (maybe not write ...)