aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-19 07:27:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-19 07:27:40 -0800
commit805741f649cc0d1b505616a9f518ca6718221ff4 (patch)
tree8a169e4d0d9e7ddf0fa9fe5416a7341a29ab6ed8
parent06b262b3f17f74d476f94ff87af58c70ab070eb1 (diff)
closure docs on emcc --help
-rwxr-xr-xemcc14
1 files changed, 9 insertions, 5 deletions
diff --git a/emcc b/emcc
index ad729ac5..6f38b32b 100755
--- a/emcc
+++ b/emcc
@@ -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