You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a trivial hello world program in Rust and then compiled using the wasm32-wasi target. I am working on a WASI implementation and have implemented enough of the WASI spec to execute this Rust program; however, the parser fails while reading the binary module:
WebAssembly.ModuleLoadException: At offset 12463: At offset 12462: Don't know how to parse miscellaneous opcode "10".
I understand that opcode 0x0a is not implemented by the spec (perhaps in a proposal?); so this makes me think either that the module parser has a bug, or the Rust compiler is generating WASM32 code that is not covered by this software.
I am interested in contributing to this library. It would be awesome to have a WebAssembly runtime native to .NET that leveraged RyuJIT (x86, x64, amd32, amd64). Any guidance on what this issue could be would be a good starting point.
The text was updated successfully, but these errors were encountered:
So, after diving into the source code and the WASM spec, this error is referring to the Bulk Memory Operations proposal. After implementing these instructions I can load the module. Section 12 (Data Count) is also part of that proposal.
I wrote a trivial hello world program in Rust and then compiled using the wasm32-wasi target. I am working on a WASI implementation and have implemented enough of the WASI spec to execute this Rust program; however, the parser fails while reading the binary module:
WebAssembly.ModuleLoadException: At offset 12463: At offset 12462: Don't know how to parse miscellaneous opcode "10".
I understand that opcode 0x0a is not implemented by the spec (perhaps in a proposal?); so this makes me think either that the module parser has a bug, or the Rust compiler is generating WASM32 code that is not covered by this software.
The Rust program is simply:
The WAT representation of the module is attached.
sample.txt
I am interested in contributing to this library. It would be awesome to have a WebAssembly runtime native to .NET that leveraged RyuJIT (x86, x64, amd32, amd64). Any guidance on what this issue could be would be a good starting point.
The text was updated successfully, but these errors were encountered: