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

Add bulk memory operations #40

Open
RoyalIcing opened this issue Jul 23, 2024 · 0 comments
Open

Add bulk memory operations #40

RoyalIcing opened this issue Jul 23, 2024 · 0 comments

Comments

@RoyalIcing
Copy link
Owner

https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md

LLM generated summary:

The Bulk Memory Operations proposal includes:

• memory.init: Initializes a range of memory with data from a data segment.
• data.drop: Drops a data segment so it can no longer be used.
• memory.copy: Copies data from one region of memory to another.
• memory.fill: Fills a region of memory with a specified byte value.

Bulk Memory Operations Instructions

  1. memory.init
    • Used to initialize a memory region with data from a data segment.
    • Signature: memory.init .
    • Example: memory.init 0 0.
  2. data.drop
    • Marks a data segment as no longer needed.
    • Signature: data.drop .
    • Example: data.drop 0.
  3. memory.copy
    • Copies data from one memory region to another.
    • Signature: memory.copy .
    • Example: memory.copy 10 0 5.
  4. memory.fill
    • Fills a memory region with a specified byte value.
    • Signature: memory.fill .
    • Example: memory.fill 0 255 10.
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