Skip to content

Create WebAssembly Representer #33

Closed
@bushidocodes

Description

@bushidocodes

Initial thoughts:

  • WebAssembly names are essentially "sugar" over an index value.
  • S-Expressions are also "sugar"

There is a wabt tool called wat-desugar that can strip this stuff out.

I suspect that wasm-opcodecnt might also be useful when comparing approaches for similarity. Unique opcodes would likely distinguish approaches to problems.

The wassail tool is also able to generate control flow graphs:
https://github.com/acieroid/wassail

Another approach might be to use wasm-opt passes from binaryen. However, this would likely complicate the code and make it less readable. This also is inherently lossy as it transforms the code for sake of efficiency.
https://github.com/webassembly/binaryen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions