Dynamic Allocation
21-Sep-87 00:32:58
Sb: #85172-Dynamic Allocation
Fm: Steve Faiwiszewski 74106,425
To: Brian Elias 73145,1374
Well, there is no STANDARD way of handling memory allocation in Modula-2.
There is ALLOCATE and DEALLOCATE, and that's it. As far as I know, the rest is
up to the compiler writers. In the TDI implementation, things are as you
described them: a call to CreateHeap sets up the heap initially. However, in
Benchmark Modula-2 (Leon's compiler) there is no such thing as the heap. He
uses the Amiga's memory allocation functions directly.
– Steve –