{
  "added_at": "2026-11-09",
  "additional_evidence_urls": [
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/Makefile",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/.gitmodules",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/src/wasmdec.cc",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/src/decompiler/Decompiler.cc",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/test/tests.sh",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/test/test-spec.sh",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/release/install.sh",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/mkrelease.sh",
    "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/LICENSE",
    "https://github.com/wwwg/wasmdec/releases/tag/1.2.1",
    "https://github.com/WebAssembly/binaryen/tree/9f49e3d9c92703c3f5cf3589a78a3318bfe2bca4"
  ],
  "category": "webassembly",
  "description_en": "Command-line decompiler that parses a WebAssembly binary or text-format module with Binaryen and emits pseudo-C: globals, imported and defined functions with their locals and control flow, and a preamble of C helpers for WebAssembly operations. Several modules can be decompiled into one file with module-name prefixes, a memdump mode writes the module’s memory and table to files instead, and an Emscripten build of wasmdec powers an online demo. Development stopped at version 1.2.1 in 2018.",
  "description_zh": "命令行反编译器，借助 Binaryen 解析 WebAssembly 二进制或文本格式模块，输出伪 C 代码：包括全局变量、导入与已定义的函数及其局部变量和控制流，并附带实现 WebAssembly 运算的 C 辅助函数前导部分。可将多个模块反编译到同一文件并以模块名作前缀；memdump 模式则改为把模块的内存和表写入文件。wasmdec 自身的 Emscripten 构建支撑着一个在线演示。开发停留在 2018 年的 1.2.1 版。",
  "entry_url": "https://awesomerea.org/resources/wasmdec/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/wasmdec/",
  "evidence_url": "https://github.com/wwwg/wasmdec/blob/3d9e5ca66ece79efe8f6550fd03623bd1dea3ec5/README.md",
  "group": "tools",
  "id": "wasmdec",
  "json_url": "https://awesomerea.org/resources/wasmdec/record.json",
  "kind": "tool",
  "markdown_url": "https://awesomerea.org/resources/wasmdec/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/wasmdec/index.md",
  "name": "wasmdec",
  "name_zh": "wasmdec：WebAssembly 到 C 的反编译器",
  "record_type": "resource",
  "relationship": "foundation",
  "requirements": [
    "Source builds need g++ with C++14, Make, CMake and the Binaryen, cxxopts and WebAssembly testsuite submodules; GCC 7 or newer is recommended. The 1.2.1 download is a Linux x86-64 archive.",
    "Input is a .wasm binary or .wast text module. The asm.js mode needs a compile-time flag that the Makefile does not set; parsing relies on the pinned 2018 Binaryen and may reject newer WebAssembly features.",
    "Output is pseudo-C. Tests decompile seven bundled fixtures and spec testsuite cases and check exit status.",
    "The examples include machine-translated code from the commercial game diep.io; rights to that output remain with the original owner.",
    "The project is MIT; Binaryen, cxxopts and the testsuite submodules retain their own licenses."
  ],
  "requirements_zh": [
    "源码构建需要支持 C++14 的 g++、Make、CMake，以及 Binaryen、cxxopts 和 WebAssembly testsuite 子模块；建议 GCC 7 或更新版本。1.2.1 下载包适用于 Linux x86-64。",
    "输入是 .wasm 二进制或 .wast 文本模块。asm.js 模式需要 Makefile 未设置的编译标志；解析依赖固定的 2018 年 Binaryen，可能无法载入较新的 WebAssembly 特性。",
    "输出为伪 C。测试会反编译七个随附样本和规范测试套件样本，并检查退出状态。",
    "示例包含商业游戏 diep.io 的机器翻译代码；该输出的权利仍归原权利人所有。",
    "项目采用 MIT；Binaryen、cxxopts 和 testsuite 子模块保留各自许可。"
  ],
  "targets": [
    "binary",
    "website"
  ],
  "url": "https://github.com/wwwg/wasmdec",
  "verification": "source-reviewed",
  "verified_at": "2026-10-20"
}
