docs: better comment wasm init funcs

main
Sean McBride 4 years ago
parent 58a38016b1
commit 50c46ae8e9

@ -125,11 +125,14 @@ typedef void (*mod_libc_fn_t)(i32, i32);
#define LISTENER_THREAD_MAX_EPOLL_EVENTS 1024 #define LISTENER_THREAD_MAX_EPOLL_EVENTS 1024
#define MODULE_DEFAULT_REQUEST_RESPONSE_SIZE (PAGE_SIZE) #define MODULE_DEFAULT_REQUEST_RESPONSE_SIZE (PAGE_SIZE)
#define MODULE_INITIALIZE_GLOBALS "populate_globals" /* From Silverfish */
#define MODULE_INITIALIZE_MEMORY "populate_memory" /* From Silverfish */ /* Wasm initialization functions generated by the compiler */
#define MODULE_INITIALIZE_TABLE "populate_table" /* From Silverfish */ #define MODULE_INITIALIZE_GLOBALS "populate_globals"
#define MODULE_INITIALIZE_LIBC "wasmf___init_libc" /* From Silverfish */ #define MODULE_INITIALIZE_MEMORY "populate_memory"
#define MODULE_MAIN "wasmf_main" /* From Silverfish */ #define MODULE_INITIALIZE_TABLE "populate_table"
#define MODULE_INITIALIZE_LIBC "wasmf___init_libc"
#define MODULE_MAIN "wasmf_main"
#define MODULE_MAX_ARGUMENT_COUNT 16 /* Max number of arguments */ #define MODULE_MAX_ARGUMENT_COUNT 16 /* Max number of arguments */
#define MODULE_MAX_ARGUMENT_SIZE 64 /* Max size of a single argument */ #define MODULE_MAX_ARGUMENT_SIZE 64 /* Max size of a single argument */
#define MODULE_MAX_MODULE_COUNT 128 /* Max number of modules */ #define MODULE_MAX_MODULE_COUNT 128 /* Max number of modules */

Loading…
Cancel
Save