wag
wag copied to clipboard
WebAssembly compiler implemented in Go
See getCanonicalIndirectCallSig in internal/gen/codegen/call.go.
Some failing assert_invalid spec tests have been disabled. See the TODO in testsuite/spec.go.
Add support for applicable [extensions](https://github.com/WebAssembly/proposals/blob/main/finished-proposals.md) which are or will be used by compilers by default. - [x] [Nontrapping conversions](https://github.com/WebAssembly/nontrapping-float-to-int-conversions/blob/main/proposals/nontrapping-float-to-int-conversion/Overview.md) - [ ] [Bulk memory operations](https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md) - [x] memory.copy - [x]...
Also maybe document what the contracts are.
Ideally: - Limit module size so that it's hit before text size limit, regardless of which backend is used for code generation. - Limit wasm function size so that it's...