[Oberon] Conditional compilation using IF const THEN

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Sat Aug 11 21:48:22 CEST 2018


   > Yes - I have the historical interest. I've been trying to get hold of a copy of
   > the source of Wirth's single-pass Lilith Modula-2 compiler for the last 10 years!
   > I don't suppose you'd know any squirrels who might have get a copy?

Ok, so you’re referring to the Modula-2 compiler that was (re)designed in the
summer of 1984 to become the very first *single-pass* Modula-2 compiler.
This step was made possible by (1) the memory size of Lilith (64K words)
and (2) the code density achieved through the use of the Lilith M-code.

I don’t have the source code of it, but this compiler was the first of (and
became the basis of) an entire family of single-pass M2 compilers, eg for
fNS32032, Z80,68k, Xerox Dragon, IBM RT PC, all developed 1984-86.

So if you have any of them (e.g. MacMETH which is available), the source
code will be *practically identical* to the Lilith one - except for the backend
of course, which however you can get e.g. from the 1982 four-pass
compiler (which is also available). So with a bit of work… ;-)

-ap








More information about the Oberon mailing list