emscripten-core / emscripten-core/emscripten

How can I disable sign-extension opcode

Open
#19,121 14 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Hi I'm currently working on a project which has a custom wasm loader, it does not have support for sign-extension.When I compiled my code to wasm and instantiate with its loader, it showed error message like : invalid opcode 192, which pointed to sign-extension. After some googling I found that I could add -mno-sign-ext to disable sign extension.But when I do, the generated wasm still has opcode like i32.extends_8. My question is , how do I completely disable this family of the opcodes, or at least get a warning about its location. Thank you in advance.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.