September 2018
Intermediate to advanced
328 pages
9h 10m
English
Now that we have our C code written, we'll need to compile it. One of the required flags you must pass to the emcc command is -o <target>, where <target> is the path to the desired output file. The extension of that file will do more than just output that file; it impacts some of the decisions the compiler makes. The following table, taken from Emscripten's emcc documentation at http://kripken.github.io/emscripten-site/docs/tools_reference/emcc.html#emcc-o-target, defines the generated output types based on the file extension specified:
| Extension | Output |
| <name>.js |
JavaScript glue code (and .wasm if the s WASM=1 flag is specified). |
| <name>.html |
HTML and separate JavaScript file (<name>.js). Having the separate ... |
Read now
Unlock full access