[Oberon] PO2013 - ORB object allocation

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


Taking from earlier subject re `Compiler takes less heap

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

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

  compiling Oberon  1755   288 A89CCEE2

  Heap space  146848  56%

Tomas Kral <thomas.kral at email.cz>

More information about the Oberon mailing list