Open vajraBodhi opened 6 years ago
asm2wasm is built to run on asm.js code, not on regular JS code.
The code here looks like an emscripten shared module? If you build with -s WASM=1
then it should run asm2wasm on the asm.js part of the output for you. (Or if you want to do it manually, you need to split out the asm.js code, you can see in emcc.py how it does it, I think it calls a tool called tools/separate_asm.py
)
@kripken Yes, I want to do it manualy, I will try the method you provided. Thank you.
I got the error message when I used asm2wasm command.
The code of a.out.js as follows:
The a.out.js come from the c code: