diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-04-17 13:26:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-17 13:26:33 -0700 |
commit | 2e210c1fca804a4ec86bef8855f819747d8bd7ca (patch) | |
tree | 9a90eaee299773f1a0dc1412a5c636c3bc31cf4e /test/merge/fusing.wast.toMerge | |
parent | ec66e273e350c3d48df0ccaaf73c53b14485848f (diff) | |
download | binaryen-2e210c1fca804a4ec86bef8855f819747d8bd7ca.tar.gz binaryen-2e210c1fca804a4ec86bef8855f819747d8bd7ca.tar.bz2 binaryen-2e210c1fca804a4ec86bef8855f819747d8bd7ca.zip |
wasm-merge tool (#919)
wasm-merge tool: combines two wasm files into a larger one, handling collisions, and aware of the dynamic linking conventions. it does not do full static linking, but may eventually.
Diffstat (limited to 'test/merge/fusing.wast.toMerge')
-rw-r--r-- | test/merge/fusing.wast.toMerge | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/merge/fusing.wast.toMerge b/test/merge/fusing.wast.toMerge new file mode 100644 index 000000000..4abd0a5e1 --- /dev/null +++ b/test/merge/fusing.wast.toMerge @@ -0,0 +1,20 @@ +(module + (import "env" "memoryBase" (global $memoryBase i32)) + (import "env" "tableBase" (global $tableBase i32)) + (import "env" "memory" (memory $0 256)) + (import "env" "table" (table 0 anyfunc)) + (import "env" "foo" (func $b-foo)) + (export "bar" (func $bar-func)) + (global $b-global f64 (f64.const 2.14281428)) + (export "bglobal" (global $b-global)) + (import "env" "aglobal" (global $a-global i32)) + (func $b + (call $b-foo) + ) + (func $bar-func + (drop (f64.const 3.14159)) + (drop (get_global $a-global)) + (drop (get_global $b-global)) + ) +) + |