WebAssembly / WebAssembly/wabt

wasm-decompile: expose NameOpts::None as arg

Open
#2,477 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wasm-decompile
Dominant language
C++
Stars
8.1k
Forks
827
Avg merge
4d 6h
Merged PRs (30d)
18

Description

It's quite inconvenient to find functions by indexes right now, as they are transformed. Also might be nice to add a comment with index as wasm2wat does (;123;)

https://github.com/WebAssembly/wabt/blob/790bc0472552d80671bdf99ba7652876c463d526/src/tools/wasm-decompile.cc#L89

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 in src/tools/wasm-decompile.cc around line 89 and inspect how NameOpts is selected for wasm-decompile. Determine how to expose NameOpts::None as an argument, then verify that functions can be located by their original indexes and assess the requested index comments against wasm2wat’s (;123;) style.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, wasm
Domain
compilers
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.