Memory Management: 3 Using Global Memory

Up: GEOS SDK TechDocs | Up | Down | Prev: 2 The Structure of Memory | Next: 4 malloc()

When an application needs more raw memory at run-time, it can use the memory manager kernel routines to allocate, use, and free new blocks. An application can also create a Virtual Memory file to get memory with more advanced functionality, such as the ability to save to a disk file (see the VM chapter). However, one must understand the raw memory routines in order to use VM files.

If you will be storing small pieces of information in a block, you should create a local memory heap (a special kind of memory block). LMem heaps are also useful for storing arrays of information or for storing objects. For more information, see the Local Memory chapter.


Up: GEOS SDK TechDocs | Up | Down | Prev: 2 The Structure of Memory | Next: 4 malloc()