Closed aseaday closed 1 year ago
We won't support bulk-memory-operations in short-term because our framework only supports instructions that involves limited memory access. But I would like to have it once I ensure there is no performance issue. Let's first ask user to use --disable bulk-memory
and wait for their feedback.
Let's close this since a PR for bulk memory support is ready (see https://github.com/DelphinusLab/zkWasm/pull/86)
Description
We now need to support compiled wasm from assembly script. The assembly script use bulk-memory-operations to implement
array
in typescript. The Opcode are in0xfc
or252
.which will generate wasm code:
We use wasmi and it didn't support bulk-memory-operations. When wasmi run this script, it will throw:
we have two ways to solve this problem:
npx asc array.ts --disable bulk-memory -o array.wasm
to disable bulk-memory features.Goal
Pass https://github.com/DelphinusLab/zkWasm/pull/55