[Oberon] PO2013 - ORB object allocation

Tomas Kral thomas.kral at email.cz
Sun May 31 10:32:17 CEST 2020


Hi,

Taking from earlier subject re `Compiler takes less heap
space'.(http://lists.inf.ethz.ch/pipermail/oberon/2020/014343.html)

A little exercise with added SW[5] to GC, to disable/enable collection
at runtime and watch how the heap builds up. It is not very precise, but
carries the idea, I hope.

GC off, ORB object allocation

Initial heap
  Heap space   35584  13%

ObjDesc*= RECORD
      class*, exno*, lev*: INTEGER;
      expo*, rdo*: BOOLEAN;
      ...

  compiling Oberon  1701   288 A89CCEE2

System.Watch
  Heap space  199648  76%
  
ObjDesc*= RECORD
      class*, exno*: BYTE;
      expo*, rdo*: BOOLEAN;
      lev*: INTEGER;
      ...

  compiling Oberon  1755   288 A89CCEE2

System.Watch
  Heap space  146848  56%


-- 
Tomas Kral <thomas.kral at email.cz>


More information about the Oberon mailing list