Repository navigation
Conversation
kripken
commented
Jun 10, 2019
- Remove some older files focused on fastcomp and on building it from source. There were a bunch of out of date things there anyhow, and we don't want to be in the business of maintaining that anyhow. I made sure the main "building fastcomp" doc is in good shape for those that need it.
- Update various notes about fastcomp, mentioning it's status wrt the llvm wasm backend.
- Make the main "building from source" page link to the upstream instructions for LLVM and Binaryen (and keep the link to the fastcomp page).
- Update gitlab link (see Add docs on how to use emscripten in GitLab #8676).
- Update optimization and other docs to refer not just to asm.js (they were old docs!) and make sure they make sense for the wasm backend too.
… contributing (which it isn't), and fix gitlab link for now as discussed on #8676 (comment)
| How Emscripten optimizes | ||
| ======================== | ||
|
|
||
| When compiling source files to object files, Emscripten runs clang and the LLVM optimizer. When compiling to wasm object files (the default with wasm), LLVM also compiles into wasm, and optimizes while doing so. |
There was a problem hiding this comment.
I think these 2 sentences are redundant.
There was a problem hiding this comment.
How about replacing them with Compiling source files to object files works as you'd expect in a native build system that uses clang and LLVM ?
There was a problem hiding this comment.
That would work. Could even extend to "Compiling source files to object files works similarly to a native build system: Emscripten runs clang and the LLVM optimizer."
|
|
||
| ``-Os`` | ||
| Like ``-O3``, but with extra optimizations that reduce code size at the expense of performance. This can affect both bitcode generation and JavaScript. | ||
| Like ``-O3``, but with extra optimizations that reduce code size at the expense of performance. This can affect both wasm and JavaScript. |
There was a problem hiding this comment.
does Os trade size for performance? In LLVM it's not supposed to, that's what Oz is for.
There was a problem hiding this comment.
How about softening it to Like -O3, but focuses more on code size (and may make tradeoffs with speed) since binaryen does make such decisions: when it has to pick one, it picks size, in -Os.
There was a problem hiding this comment.
Yeah that's fine. If that's the behavior we should specify that.
|
Thanks for the comments @dschuff! I made edits for those things now. |
|
Added a small correction to the download page, the emsdk provides node.js (so users don't need to install it themselves, as noted on the mailing list). |
* Remove some older files focused on fastcomp and on building it from source. There were a bunch of out of date things there anyhow, and we don't want to be in the business of maintaining that anyhow. I made sure the main "building fastcomp" doc is in good shape for those that need it. * Update various notes about fastcomp, mentioning it's status wrt the llvm wasm backend. * Make the main "building from source" page link to the upstream instructions for LLVM and Binaryen (and keep the link to the fastcomp page). * Update gitlab link (see emscripten-core#8676). * Update optimization and other docs to refer not just to asm.js (they were old docs!) and make sure they make sense for the wasm backend too. * Node is installed by the emsdk, so don't ask people to install it manually