diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 10:00:48 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-30 10:00:48 -0700 |
commit | cd0ada7a34736790d368c11ec536dd32c36aeffa (patch) | |
tree | 6b3a6d4a3c7d72f0ef50818f938456d5641c951e | |
parent | 57b80000a96e08592237f36dc46ecf60932ab6e4 (diff) | |
download | binaryen-cd0ada7a34736790d368c11ec536dd32c36aeffa.tar.gz binaryen-cd0ada7a34736790d368c11ec536dd32c36aeffa.tar.bz2 binaryen-cd0ada7a34736790d368c11ec536dd32c36aeffa.zip |
not on function pointers
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |