Skip to content

Define a wasm64 WASI ABI and runtime contract #466

Open

Description

@LunaStev

Problem

PR #457 adds a working wasm64-unknown-unknown Memory64 target but intentionally leaves wasi/wasm64 disabled. Wave must not reuse the wasm32 WASI Preview 1 pointer ABI without a defined 64-bit host/runtime contract.

Scope

  • Select and document the WASI ABI/version used for 64-bit pointers.
  • Define entry, imports, strings, iovec, filesystem, clock, environment, and process-exit layouts.
  • Add a compatible host runner and linker contract.
  • Reuse the wasm64 allocator without pointer narrowing.
  • Activate wasi/wasm64 only after object and runtime fixtures pass.

Completion criteria

  • The target has an exact triple and published ABI contract.
  • Standard-library smoke tests execute through a maintained runtime.
  • Pointer-bearing imports are validated against an independent host fixture.
  • supported and ci are enabled only when the lane is reliable.

Related: #451, #457

Activity

  1. added
    enhancement
    help wanted
    feature request
    cross-platform
    on Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cross-platformenhancementfeature requesthelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions