Skip to content

[wasm2c] Add the very beginning of a wasm2c implementation and test harness#8763

Draft
lexi-nadia wants to merge 16 commits into
WebAssembly:mainfrom
lexi-nadia:main
Draft

[wasm2c] Add the very beginning of a wasm2c implementation and test harness#8763
lexi-nadia wants to merge 16 commits into
WebAssembly:mainfrom
lexi-nadia:main

Conversation

@lexi-nadia
Copy link
Copy Markdown

@lexi-nadia lexi-nadia commented May 22, 2026

This change adds an extremely bare-bones wasm2c implementation and test harness.

Most of the code here is imported directly from WABT, particularly the boilerplate code and tests. The only substantive new code is in src/tools/wasm2c/* and scripts/test/wasm2c.py.

I tried to prune this down to be as minimal as possible while still providing a useful checkpoint, but I'm not sure I succeeded. Please feel free to offer suggestions if you see more ways to shrink this down.

Comment thread src/tools/wasm2c/prebuilt/wasm2c_atomicops_source_declarations.cpp
Comment thread src/templates/wasm2c.declarations.c Outdated
Comment thread src/tools/wasm2c/templates/wasm2c.declarations.c
Comment thread src/tools/CMakeLists.txt
Comment thread src/tools/wasm2c.cpp Outdated
Comment thread src/tools/wasm2c/examples/fac/fac.c Outdated
Comment thread third_party/picosha2
Comment thread wasm2c/benchmarks/dhrystone/src/dhry.h Outdated
Comment thread wasm2c/benchmarks/dhrystone/dhrystone.wasm Outdated
Comment thread src/tools/wasm2c/README.md
@lexi-nadia
Copy link
Copy Markdown
Author

Okay, I uploaded a new draft that incorporates all your feedback. PTAL. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants