Rerumu / Wasynth

WebAssembly to Lua translation library and tool
https://discord.gg/sgm5YcmgyD
GNU General Public License v3.0
130 stars 18 forks source link

WASM memory.copy instruction unimplemented #22

Closed schmatz closed 1 year ago

schmatz commented 2 years ago

Trying to compile CPython for a challenge and see the error

thread 'main' panicked at 'Unsupported instruction: MemoryCopy { src: 0, dst: 0 }', wasm-ast/src/factory.rs:616:18

The spec has more details about these instructions.

For reference, the wasm file is here: python.wasm.zip

Might have a go at implementing this if I have some spare time.

schmatz commented 2 years ago

Well, I ended up implemented a PR and using that wasynth hilariously generates 47MiB of Luau code and it doesn't immediately crash when I run it. It doesn't output anything (my base wasm file doesn't run properly in any case) so I have no confirmation that it works, but at least it seems to do something.

Rerumu commented 1 year ago

This was finally fixed in 4bd5fb8d439c4763f3d7b7767400529c894d0b3c.