Added a print_heap mechanism into vm

Pretty simple implementation, nothing massive.
In VERBOSE mode, heap is tracked for any allocations/deletions,
printing it if so.
This commit is contained in:
2023-11-01 21:39:00 +00:00
parent be312cfbbf
commit 32c1bcb859
2 changed files with 49 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ void vm_stop(vm_t *);
void vm_print_registers(vm_t *, FILE *);
void vm_print_stack(vm_t *, FILE *);
void vm_print_program(vm_t *, FILE *);
void vm_print_heap(vm_t *, FILE *);
void vm_print_all(vm_t *, FILE *);
// Execution routines