[Oberon] Re (2): Other CONST.

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Mon Jan 7 08:55:33 CET 2019


   > A good example might be a full Oberon-2 compiler for RISC5, either Wirthian or OP2.
   > How much memory does it really need to compile realistic programs.

A *single pass* Oberon-2 compiler can be built with ~3000 lines of code, needs about
as much memory as the official Oberon-07 compiler during compilation of itself or other
programs, and can absolutely run on FPGA Oberon with its 1MB of memory - so long
as the compiled programs are not significantly larger than the programs typically found
in FPGA Oberon (i.e. up to about 1000 lines of code per module). The experiment has
recently been conducted (albeit with a revised version of Oberon-2 based on Oberon-07).

A *multi-pass* Oberon-2 compiler à la OP2 can be built with an estimated 5000-6000 lines
of code - if targeted at the RISC processor - and would need considerably more memory
than Oberon-07 during compilation of itself or other programs (mainly because of the
heap space requirements of its intermediate code representation). It would therefore
almost certainly not fit in FPGA Oberon with its 1MB of RAM. You can try though..



More information about the Oberon mailing list