#include "vm.h"
Defines | |
#define | VM_MIN_HEAP_STACK_DIST 256 |
Typedefs | |
typedef _vm_heap_entry | vm_heap_entry_t |
head of an allocated / free memory chunk | |
typedef _vm_heap | vm_heap_t |
the heap management information | |
Functions | |
void | Heap_Init (vm_mem_t *m) |
initialise the virtual machine heap management | |
vm_addr_t | Heap_Allocate (vm_mem_t *m, vm_size_t sz) |
allocate memory on the heap with first fit algorithm | |
void | Heap_Deallocate (vm_mem_t *m, vm_addr_t a) |
deallocate memory on the heap | |
void | Heap_Cleanup (vm_mem_t *m) |
cleanup the heap and merge free list entries | |
void | Heap_Dump (vm_mem_t *m, int verbose) |
dump the heap management structure to a file |
|
minimal distance between heap and stack in bytes |
|
allocate memory on the heap with first fit algorithm
|
|
cleanup the heap and merge free list entries
|
|
deallocate memory on the heap
|
|
dump the heap management structure to a file
|
|
initialise the virtual machine heap management
|