#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "vm_heap.h"
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_Data (unsigned char *s, int ofs, int len) |
dump data to stderr | |
void | Heap_Dump (vm_mem_t *m, int verbose) |
dump the heap management structure to a file |
|
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
|
|
dump data to stderr
|
|
initialise the virtual machine heap management
|