WebAssembly / WebAssembly/wabt
Undocumented syntax for wasm-decompile
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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