[Oberon] Dynamic local array implementation

Luca Boasso luke.boasso at gmail.com
Sun Oct 15 06:52:19 CEST 2017

Since we have a garbage collector, unlike the Astrobe system designed for
microcontrollers, probably it is cleaner to implement dynamic arrays like
in Oberon-2. I would rather pay the price of longer collection cycles (that
only happens if dynamic arrays are used) than a longer prolog/epilog for
each function that you pay at every invocation even if the feature is not
Don't get me wrong, I like Chris's implementation very much.

On Oct 12, 2017 21:07, "Andreas Pirklbauer" <andreas_pirklbauer at yahoo.com>

> I am afraid the frame pointer is really needed.

I am now convinced that at least one additional element on the stack is
Reading Astrobe’s solution, the FP indeed appears to be the easiest/best

(I tried to implement the “counter" idea and very quickly realized that it
in fact encoding essentially the same information as the FP; so case

I think using the stack for local dynamic arrays is worth adopting..

Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20171014/c8da892b/attachment.html>

More information about the Oberon mailing list