This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// it's a simple mark-and-sweep algorithm | |
// binary layout: | |
// text, data and bss must be after `loadbase`, then comes the .heap section, then `stacksize` which must come after .heap | |
#define heapsize 0x10000 | |
#define loadbase 0x200000 | |
#define stacksize 0x4000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "uvwasi.h" | |
__wasi_errno_t __wasi_args_get(char** argv, char* argv_buf) { | |
return __WASI_ENOTSUP; | |
} | |
__wasi_errno_t __wasi_args_sizes_get(size_t* argc, size_t* argv_buf_size) { | |
return __WASI_ENOTSUP; |