Open axic opened 5 years ago
Introduce two modules which translate: 1) from regular wasm to bulk-memory 2) from bulk-memory to regular wasm
Overview: https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md
As an example, replace all memcpy's with the following function:
memcpy
(func (param $dst i32) (param $src i32) (param $size i32) (result i32) get_local $dst get_local $src get_local $size memory.copy get_local $dst)
Or for the reverse direction: replace the use of memory.copy with memcpy.
memory.copy
Introduce two modules which translate: 1) from regular wasm to bulk-memory 2) from bulk-memory to regular wasm
Overview: https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md
As an example, replace all
memcpy
's with the following function:Or for the reverse direction: replace the use of
memory.copy
withmemcpy
.