diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-19 07:27:40 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-19 07:27:40 -0800 |
commit | 805741f649cc0d1b505616a9f518ca6718221ff4 (patch) | |
tree | 8a169e4d0d9e7ddf0fa9fe5416a7341a29ab6ed8 | |
parent | 06b262b3f17f74d476f94ff87af58c70ab070eb1 (diff) |
closure docs on emcc --help
-rwxr-xr-x | emcc | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -159,12 +159,12 @@ Options that are modified or new in %s include: -O2 As -O1, plus the relooper (loop recreation), plus LLVM -O2 optimizations -O3 As -O2, plus dangerous optimizations that may - break the generated code! This turns on + break the generated code! This adds - INLINING_LIMIT = 0 - DOUBLE_MODE = 0 - PRECISE_I64_MATH = 0 - and the closure compiler + -s INLINING_LIMIT=0 + -s DOUBLE_MODE=0 + -s PRECISE_I64_MATH=0 + --closure 1 This is not recommended at all. A better idea is to try each of these separately on top of @@ -221,6 +221,10 @@ Options that are modified or new in %s include: may require some changes to the code. This is run by default in -O3. + Note: If closure compiler hits an out-of-memory, + try adjusting JAVA_HEAP_SIZE in the environment + (for example, to 4096m for 4GB). + --js-transform <cmd> <cmd> will be called on the generated code before it is optimized. This lets you modify the JavaScript, for example adding some code |