feat: implement environment table for vm

This commit is contained in:
samsonium
2026-10-12 17:20:41 +03:00
parent 2c76277a68
commit e7573743aa
5 changed files with 164 additions and 18 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
#include <compiler/utils/fzl_const_pool.h> // NOTE: move outside compiler scope to common
#include <stddef.h>
#include <stdint.h>
#include <vm/fzl_vm_env.h>
// VM descriptor
typedef struct
@@ -26,7 +27,8 @@ typedef struct
size_t ctop;
// Environment stack
// TODO: implement `estack` and `etop`
fzl_vm_env_t estack[256];
size_t etop;
} fzl_vm_t;
// Allocate FZL VM