Skip to content

Unknown miscellaneous opcode 10 (0x0a) #63

@chutchinson

Description

@chutchinson

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:

fn main() {
    println!("hello world");
}
cargo build --release --target wasm32-wasi

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions