Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translator for wasm-bulk-memory #113

Open
axic opened this issue Jun 7, 2019 · 0 comments
Open

Translator for wasm-bulk-memory #113

axic opened this issue Jun 7, 2019 · 0 comments

Comments

@axic
Copy link
Member

axic commented Jun 7, 2019

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:

(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant