diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2026-10-17 10:52:27 +0200 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2026-10-17 10:52:27 +0200 |
| commit | d3c95fce3f5c8b910d3dc04ed5d8c1673944baf0 (patch) | |
| tree | 61b36f4cf2c0c77a3ee3bc05a83384b695e58fb5 /tools | |
| parent | f97bb735065392d639462e90d9abd1bb5f738c61 (diff) | |
Use `wasm2c` instead of WAMR
Instead of interpreting Wasm, compile it ahead of time to C and
run that instead:
- it is much faster (no interpreter overhead)
- it is easier to implement host functions, they are just C calls
This works well for us since we only ever load a single Wasm blob
(the PICO-8 runtime that `picow` is built with).
There was some fun figuring out how big-endian stuff works (WRT
memory layout), but otherwise it was pretty straight forward.
Note that traps are still not working, I need to figure that out
still...
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/generate-sysroot.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/generate-sysroot.c b/tools/generate-sysroot.c index 3663144..ff81b2c 100644 --- a/tools/generate-sysroot.c +++ b/tools/generate-sysroot.c @@ -122,8 +122,6 @@ int main(int argc, char *argv[argc + 1]) { char const *file; } entries[] = { {"pico8_data_pod", "pico8.data.pod"}, - {"pico8_wasm", "pico8.wasm"}, - {"stub_pico8_wasm", "stub/pico8.wasm"}, {"unknown_p8_png", "unknown.p8.png"}, {"font_png", "font.png"}, }; |
