part of multimodule execution impl in interpreter: frame extension, state exstension, call and return

This commit is contained in:
ProgramSnail 2024-11-29 23:11:46 +03:00
parent 0a26953318
commit 59f3dfb43e
9 changed files with 108 additions and 59 deletions

View file

@ -5,9 +5,9 @@
#include "utils.h"
struct ModSearchResult {
ssize_t symbol_offset; // < 0 => not found
size_t symbol_offset;
uint32_t mod_id;
bytefile *mod_file;
bytefile *mod_file; // = NULL => not found
};
void mod_add_search_path(const char *path);
@ -16,4 +16,6 @@ bytefile *mod_get(uint32_t id);
int32_t mod_load(const char *name); // < 0 => not found
uint32_t mod_add(bytefile *module);
struct ModSearchResult mod_search_pub_symbol(const char *name);