wat: write primitive + cross-tier functional.lsp runner

Adds (write x) and (write-string s) primitives. write quotes strings
and #\-prefixes chars — what tests/functional.lsp's assert-equal
uses to print failures.

New target: make wasm-test-functional-cross (also rolled into wasm-test)
runs the 205-assertion tests/functional.lsp against each WASM tier and
reports pass counts:

  c-wasm:   205 / 205   (full parity with native c)
  asm-wasm:  93 / 111   reaches mid-suite before stack overflow on
                        a deeply recursive test; the 84% it reaches
                        passes. Documented progress toward full parity
                        with asm/lumbda.s.

The runner exit-soft on the asm tier — it's a measurement, not a gate.
This commit is contained in:
russell@unturf.com 2026-06-14 13:00:06 -04:00
parent 6773c50ff7
commit 51b449a83d
No known key found for this signature in database
6 changed files with 161 additions and 1 deletions

Binary file not shown.

Binary file not shown.