RosettaCodeData/Task/Memory-allocation/XPL0/memory-allocation.xpl0
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

5 lines
305 B
Text

int Array(10); \allocates 10 integers (40 bytes) of heap space
Array2:= Reserve(10*4); \another way to allocate 10 integers of heap space
Array3:= MAlloc(4); \allocate 4 paragraphs (64 bytes) of conventional memory
...
Release(Array3); \release this memory so it can be used elsewhere