[Oberon] Dynamically sized allocation with NEW()

Andreas Pirklbauer andreas_pirklbauer at yahoo.com
Tue Jan 15 18:22:22 CET 2019


   > > NEW(F.raster, NofBytes);
   >
   > Hi, very interesting. Is this allocated on the heap, or stack?


In the heap. And it is also garbage-collected just like regular heap records. See [1] and [2] below.

On average one saves about 0.5 -1 KB of heap space *per* internalized font.


[1] Documentation:

http://github.com/andreaspirklbauer/Oberon-experimental/blob/master/Documentation/Enhanced-FPGA-Oberon07-compiler.pdf


[2] Implementation: See modules Kernel.Mod (New, Mark, Collect), ORP.Mod (StandProc) and ORG.Mod (New) in:

https://github.com/andreaspirklbauer/Oberon-experimental/tree/master/Sources




More information about the Oberon mailing list