Skip to content

Commit

Permalink
wasm2c: implement the bulk memory operations proposal (WebAssembly#1877)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuhan Deng <yhdeng@stanford.edu>
  • Loading branch information
2 people authored and matthias-blume committed Dec 16, 2022
1 parent 344ef67 commit d177456
Show file tree
Hide file tree
Showing 21 changed files with 4,844 additions and 527 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Wabt has been compiled to JavaScript via emscripten. Some of the functionality i
| [threads][] | `--enable-threads` | ||||| |
| [multi-value][] | `--disable-multi-value` |||||||
| [tail-call][] | `--enable-tail-call` | ||||| |
| [bulk memory][] | `--disable-bulk-memory` |||||| |
| [bulk memory][] | `--disable-bulk-memory` |||||| |
| [reference types][] | `--disable-reference-types` |||||| |
| [annotations][] | `--enable-annotations` | | || | | |
| [memory64][] | `--enable-memory64` | ||||| |
Expand Down
3 changes: 2 additions & 1 deletion scripts/gen-wasm2c-templates.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# https://stackoverflow.com/a/47801116
file(READ ${in} content)
set(content "const char* ${symbol} = R\"w2c_template(${content})w2c_template\";")
string(REGEX REPLACE "(.[^\n]*\n)" "R\"w2c_template(\\1)w2c_template\"\n" content "${content}")
set(content "const char* ${symbol} = ${content};")
file(WRITE ${out} "${content}")
Loading

0 comments on commit d177456

Please sign in to comment.