WebAssembly / WebAssembly/wabt

Undocumented syntax for wasm-decompile

Open
#2,532 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

In the syntax for the C-like language produced by obj-decompile, the following syntax's behaviour is not documented anywhere in the WABT docs:

identifier[x@y]

I believe x is an offset and y is the number of bytes being indexed for a load instruction, but again, since there's no documentation, I do not fully understand the syntax enough to add to the documentation confidently myself

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 searching the WABT documentation and wasm-decompile or obj-decompile implementation for the identifier[x@y] syntax, then trace how it is produced for a load instruction. Document the meanings of x and y with an example once confirmed, and verify that the syntax is covered in the relevant WABT docs.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
compilers, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.