Hasty Briefsbeta

Scm2wasm: A Scheme to WASM compiler in 600 lines of C, making use of WASM GC

5 hours ago
  • #scheme
  • #wasm
  • #compiler
  • scm2wasm is described as a 'really bad minimal scheme compiler'.
  • To build the compiler, use the command `make`.
  • To run the compiler, use `./scm2wasm < input.scm > output.wasm`.
  • The output can be validated with `wasm-tools validate output.wasm`.
  • The output can be printed in a readable format with `wasm-tools print output.wasm -o output.wat`.
  • The compiled output can be executed with `wasmtime -Wgc --invoke start output.wasm`.