From 90d901345abcbb271653fbee6749a2b3273fb62e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 1 Nov 2023 17:52:15 +0000 Subject: Added a routine to cleanup resources allocated to the VM This means the stack should be heap allocated, which makes sense as beyond 1KB one should really be using the heap rather than the stack. --- vm/runtime.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vm/runtime.h') diff --git a/vm/runtime.h b/vm/runtime.h index 1226ea9..9dd639e 100644 --- a/vm/runtime.h +++ b/vm/runtime.h @@ -58,6 +58,7 @@ err_t vm_execute_all(vm_t *); void vm_load_stack(vm_t *, byte *, size_t); void vm_load_program(vm_t *, inst_t *, size_t); void vm_load_registers(vm_t *, registers_t); +void vm_stop(vm_t *); // Print routines #define VM_PRINT_PROGRAM_EXCERPT 5 -- cgit v1.2.3-13-gbd6f