Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Win32 Memory Management Win32 Date and Time Management Win32 Thread Local Storage (TLS) Win32 API Function Cross Reference Alternate Heap Manager RTTHeap Compiling and Linking with On Time RTOS-32 |
Win32 Memory ManagementRTTarget-32 defines functions for Win32's virtual memory (VirtualAlloc, VirtualFree), Win32 heaps (HeapCreate, HeapAlloc, etc.), and the local heap (LocalAlloc, etc.). The Win32 memory management is implemented using one of two available RTTarget-32 memory managers: the fixed memory manager and the virtual memory manager with uncommitted memory support (both are described in section RTTarget-32's Memory Managers). Win32 memory management normally requires uncommitted memory support, and many compilers' run-time systems rely on it. Thus, if the fixed memory manager is used, problems can occur if:
In such situations, memory may be exhausted quickly with the fixed memory manager due to excessive allocation of uncommitted memory. RTTarget-32's virtual memory should be used in this case.
|