<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">No, it does not allocate anything from the heap.<div>Please read chapter 8 carefully (Figure 8.1) to understand the 7 different memory areas the OberonOS uses.</div><div><a href="https://inf.ethz.ch/personal/wirth/ProjectOberon/PO.System.pdf">https://inf.ethz.ch/personal/wirth/ProjectOberon/PO.System.pdf</a><br><br></div><div>Control question to check the understanding</div><div>- what are the 7 reagion and how big are they?</div><div>- Try to find out what region the Linker (ORL) is using? (it‘s not the heap, so 6 to go :-)</div><div><br><div dir="ltr">Br</div><div dir="ltr">Jörg</div><div dir="ltr"><br><blockquote type="cite">Am 18.05.2020 um 08:19 schrieb Tomas Kral <thomas.kral@email.cz>:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Hi,</span><br><span></span><br><span>I use rather earlier version of the above. Looking at buffer</span><br><span>allocation code part.</span><br><span></span><br><span> binStart := Modules.AllocPtr; binMTOrg := binStart + 32; binroot :=</span><br><span>NIL; res := 0; limit := Kernel.heapOrg; DEC(limit, 8000H);</span><br><span> binAllocPtr := binStart+ 256; i:= 0;</span><br><span> WHILE i < 256+DescSize DO SYSTEM.PUT(binStart + i, 0); INC(i, 4)</span><br><span>END ;</span><br><span></span><br><span>This sets aside a static block from the heap, if I got the idea right.</span><br><span></span><br><span>[a] I do not see later in the code, the block is released?</span><br><span>[b] These are mine limits, do I need to adjust anything in ORL?</span><br><span></span><br><span>ORTool 18.2.2013</span><br><span>branch to Modules Init() E70025FE</span><br><span>mem limit 0</span><br><span>boot size/sectors used 39296 39</span><br><span>modules root 00008420</span><br><span>modules limit 00040000</span><br><span>Mem limit 0009FEF0</span><br><span>Stack org 00060000</span><br><span></span><br><span>Many thanks</span><br><span></span><br><span>-- </span><br><span>Tomas Kral <thomas.kral@email.cz></span><br><span>--</span><br><span>Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems</span><br><span>https://lists.inf.ethz.ch/mailman/listinfo/oberon</span><br></div></blockquote></div></body></html>