summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-18 09:25:56 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-18 09:25:56 -0800
commit4cc1485b11726a5c6fd0eda25fe2b092f174bedb (patch)
tree31f1f9a234b35a17c136fe4a185efd23224f57b9
parent174ab890d66bcaeda615204ae94a733e95dbb19a (diff)
downloadbinaryen-4cc1485b11726a5c6fd0eda25fe2b092f174bedb.tar.gz
binaryen-4cc1485b11726a5c6fd0eda25fe2b092f174bedb.tar.bz2
binaryen-4cc1485b11726a5c6fd0eda25fe2b092f174bedb.zip
readme update
-rw-r--r--README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.md b/README.md
index 86b13896d..e9d09a17c 100644
--- a/README.md
+++ b/README.md
@@ -179,7 +179,11 @@ This is separate from that. `asm2wasm` focuses on compiling asm.js to WebAssembl
* How about compiling WebAssembly to asm.js (the opposite direction of `asm2wasm`)? Wouldn't that be useful for polyfilling?
-It would be useful, but it is a much harder task, due to some decisions made in WebAssembly. For example, WebAssembly can have control flow nested inside expressions, which can't directly map to asm.js. It could be supported by outlining the code to another function, or to compiling it down into new basic blocks and control-flow-free instructions, but it is hard to do so in a way that is both fast to do and emits code that is fast to execute. On the other hand, compiling asm.js to WebAssembly is almost straightforward.
+Experimentation with this is happening, in `wasm2asm`.
+
+This would be useful, but it is a much harder task, due to some decisions made in WebAssembly. For example, WebAssembly can have control flow nested inside expressions, which can't directly map to asm.js. It could be supported by outlining the code to another function, or to compiling it down into new basic blocks and control-flow-free instructions, but it is hard to do so in a way that is both fast to do and emits code that is fast to execute. On the other hand, compiling asm.js to WebAssembly is almost straightforward.
+
+We just have to do more work on `wasm2asm` and see how efficient we can make it.
* Can `asm2wasm` compile any asm.js code?