12 Commits
Author SHA1 Message Date
nandi c69bc2364a Merge pull request 'Add i64 support' (#1) from geordi/add-i64-support into main
Reviewed-on: #1
2026-11-23 05:42:56 +00:00
nandi be020ca0ba Merge branch 'main' into geordi/add-i64-support 2026-11-23 05:42:46 +00:00
nandi 143e0035a3 Add sweet release config (#4) 2026-11-22 21:23:33 +00:00
nandiandClaude Sonnet 5.5 fdc1cd4b3c Add bulk memory ops and raw syscall intrinsics
- memory.copy / memory.fill (0xFC 0x0A/0x0B) with bounds checks via rep movsb/stosb
- module "sys" host intrinsics for hand-written wasm shims: syscall, membase,
  argv_base, peek64, strlen, copy_in; _start saves the initial rsp for argv
  (only when the module has a data segment)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 18:12:12 -08:00
nandiandClaude Sonnet 5.5 38f7b934b5 Make fact example a wasi:cli command that prints its result
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 17:51:26 -08:00
nandi 469326a5d0 Merge branch 'main' into geordi/add-i64-support 2026-11-21 11:37:28 +00:00
nandi 987cdf256b Add i64 and f32/f64 support (README updated to match) (#3) 2026-11-21 11:15:46 +00:00
nandi cc8516a369 Add f32/f64 support (#2) 2026-11-21 09:56:35 +00:00
SpriteandClaude Sonnet 5.5 4c4fa91dc9 Add i64 support
Stack slots, locals and globals were already 8 bytes wide, so i64 is mostly
64-bit encodings of the existing i32 ops: constants, comparisons, arithmetic,
bitwise, shifts/rotates, div/rem (with zero and overflow traps), wrap/extend,
sign-extension ops, i64 loads/stores (incl. narrow forms) and 64-bit globals.
Adds examples/i64.wat, which self-checks and exits 0 on success.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:49:28 +00:00
nandiandClaude Sonnet 5.5 05488c9783 Add wasi:cli component support, linear memory and globals
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 01:03:32 -08:00
nandiandClaude Sonnet 5.5 cb1cec8b13 Add justfile and ignore out/
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 00:56:57 -08:00
nandiandClaude Sonnet 5.5 b8617c7aaa Add wasm2elf: i32 WebAssembly to static x86-64 ELF compiler in MoonBit
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 00:53:04 -08:00