wasm2c
TLDR
Convert to C
$ wasm2c [input.wasm] -o [output.c]
Generate header$ wasm2c [input.wasm] -o [output.c] --header=[output.h]
Module name$ wasm2c [input.wasm] -o [output.c] --module-name=[mymod]
SYNOPSIS
wasm2c [-o output] [--header file] [options] input
DESCRIPTION
wasm2c converts WASM to C. It transpiles modules.
Portable C output. Compile anywhere.
No WASM runtime needed. Native execution.
Header generation. API definitions.
Part of WABT. WebAssembly tools.
PARAMETERS
-o FILE
Output C file.--header FILE
Generate header.--module-name NAME
C module name.--help
Show help.
CAVEATS
Generated code large. Slow compilation. Part of WABT.
HISTORY
wasm2c is part of WABT (WebAssembly Binary Toolkit), converting WebAssembly to portable C code.


