Skip to content

wasm-decompile: unexpected opcode 0x12 #2613

@DieracDelta

Description

@DieracDelta

When I run the decompiler on a simple haskell wasm program I get:

0003931: error: unexpected opcode: 0x12

Steps to reproduce:

  • obtain ghc with a wasm backend
  • echo 'main = putStrLn "hello world"' > hello.hs
  • wasm32-wasi-ghc hello.hs -o hello.wasm
  • decompile: wasm-decompile hello.wasm

Note: I get this error on 1.0.37 and the ghc version obtained with nix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions