CompuServe Thread

Dynamic Allocation

1 messages in this thread
#85703From: Steve FaiwiszewskiSep 21, 1987 12:32 AM
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 –