Alex Beregszaszi
Alex Beregszaszi
[`s2wasm` was removed in June from binaryen](https://github.com/WebAssembly/binaryen/pull/1607) and apparently now clang supports the whole process by `clang hello.c -o hello.wasm --target=wasm32 -nostdlib -Xlinker --no-entry -Xlinker --allow-undefined`. Also https://aransentin.github.io/cwasm/
I'd prefer if the two C/C++ documentations could be merged into a single file, because they have a lot common (binaryen, chisel, etc.)
The major benefit is the caching it is doing. It would replace etherchain.
@kthomas thanks for the work! It may take a bit to review it, but perhaps breaking up this PR into smaller changes (as separate PRs) could speed up the process.
@chfast @jwasinger can you review this?
@chfast @jwasinger what is the status of this?
It would be used for https://github.com/ewasm/hera/issues/303
I'm sure you are aware of https://github.com/status-im/nim-eth-contracts ? It does some of these steps already.
Why the need for emscripten?
Does it have the proper imports and exports? You could run wasm-chisel on it to clean some of that up. You need to install it via Rust's cargo: `cargo install...