If this is a current version of emscripten you should see both a HelloWorld.js and a HelloWorld.wasm file.
The .js file is required, and contains the JavaScript portions of the runtime and the loader for the wasm code. If you have an old version of emscripten you might see HelloWorld.js and HelloWorld.js.mem, in which case you should probably upgrade to the current release of emscripten (1.38.13). If you need the old version for some reason, you can pass "-s WASM=1" on the command line to force it to wasm mode, unless it's so old it doesn't support wasm. -- brion On Fri, Oct 12, 2018 at 2:47 PM John Smith <[email protected]> wrote: > I'm trying to compile a C program to .wasm, but it seems that all the > documentation is outdated. > > `emcc HelloWorld.c -o ./Bin/HelloWorld.wasm` > -> WARNING:root:output file "./Bin/HelloWorld.wasm" has a wasm suffix, but > we cannot emit wasm by itself, except as a dynamic library (see SIDE_MODULE > option). specify an output file with suffix .js or .html, and a wasm file > will be created on the side > > `emcc HelloWorld.c -o ./Bin/HelloWorld.js` > Only creates a .js file, no .wasm > > Any ideas how can I make it work? > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
