summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-30 10:00:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-30 10:00:48 -0700
commitcd0ada7a34736790d368c11ec536dd32c36aeffa (patch)
tree6b3a6d4a3c7d72f0ef50818f938456d5641c951e
parent57b80000a96e08592237f36dc46ecf60932ab6e4 (diff)
downloadbinaryen-cd0ada7a34736790d368c11ec536dd32c36aeffa.tar.gz
binaryen-cd0ada7a34736790d368c11ec536dd32c36aeffa.tar.bz2
binaryen-cd0ada7a34736790d368c11ec536dd32c36aeffa.zip
not on function pointers
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index e3ef391d9..0c3e3633f 100644
--- a/README.md
+++ b/README.md
@@ -56,7 +56,13 @@ emcc src.cpp -o a.html --separate-asm
That will emit `a.html`, `a.js`, and `a.asm.js`. That last file is the asm.js module, which you can pass into `asm2wasm`.
- * Note: you can try `-O1` or higher, but you should probably use `--profiling` which keeps the code semi-readable (otherwise, you'll get minified names, etc., and that code path is untested).
+If you want an optimized buid, use
+
+```
+emcc src.cpp -o a.html --separate-asm -O[2,3,etc.] -s ALIASING_FUNCTION_POINTERS=0
+```
+
+You need `ALIASING_FUNCTION_POINTERS=0` because WebAssembly does not allow aliased funciton pointers (there is a single table).
## Testing