Skip to content

Doc updates - #8777

Merged
kripken merged 11 commits into
incomingfrom
doc
Jun 18, 2019
Merged

kripken merged 11 commits into
incomingfrom
doc

Conversation

@kripken

@kripken kripken commented Jun 10, 2019

Copy link
Copy Markdown
Member
  • 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.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these 2 sentences are redundant.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does Os trade size for performance? In LLVM it's not supposed to, that's what Oz is for.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's fine. If that's the behavior we should specify that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@kripken

kripken commented Jun 13, 2019

Copy link
Copy Markdown
Member Author

Thanks for the comments @dschuff! I made edits for those things now.

@kripken

kripken commented Jun 17, 2019

Copy link
Copy Markdown
Member Author

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).

@kripken
kripken merged commit 1c2ef18 into incoming Jun 18, 2019
@kripken
kripken deleted the doc branch June 18, 2019 16:01
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants