WebAssembly / WebAssembly/binaryen

Silence some error output in the presence of multi-step commands

Open
#7,215 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
8.6k
Forks
885
Avg merge
1d 19h
Merged PRs (30d)
69

Description

I am calling wasm-merge, wasm-metadce, and wasm-opt in sequence and the output of the first two steps both errors with "Some VMs may not accept this binary because it has a large number of locals in function". I think it makes sense to silence this error with some flag that implies that the result isn't final or that there are further optimizations that will be applied.

I'm not confident if this is the only type of error that it makes sense to do something like this and how special-cased the solution might be.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the diagnostics emitted by wasm-merge, wasm-metadce, and wasm-opt for the large-locals warning. Determine whether a flag should suppress this warning for intermediate outputs or whether broader diagnostic handling is needed; done means the intended multi-step workflow avoids the unwanted errors without hiding final-result warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.