Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasm3 doesn't work #459

Open
702fbtngus opened this issue Feb 13, 2024 · 0 comments
Open

Wasm3 doesn't work #459

702fbtngus opened this issue Feb 13, 2024 · 0 comments

Comments

@702fbtngus
Copy link

702fbtngus commented Feb 13, 2024

Hello. I downloaded the executable wasm3 file, and it doesn't work as below.

$ ./wasm3 --repl fac.0.wasm
wasm3> :invoke fac-rec 3
Illegal instruction (core dumped)

fac.0.wasm is made from below .wast file:

(module
  ;; Recursive factorial
  (func (export "fac-rec") (param i64) (result i64)
    (if (result i64) (i64.eq (local.get 0) (i64.const 0))
      (then (i64.const 1))
      (else
        (i64.mul (local.get 0) (call 0 (i64.sub (local.get 0) (i64.const 1))))
      )
    )
  )
)

Just in case my CPU is the problem, it is Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant