Skip to content

proposal: all: create GOARCH=wasm64 #75329

@mf-RDP-two

Description

@mf-RDP-two

Proposal Details

Currently, there is #63131 (proposing a GOARCH=WASM32)

I see all internal compiler structures for SSA / codegen for wasm is in fact targeting 64bit already right now, effectively.
However, only 32bit output is implemented and there are i32.wrap_i64 for addresses, address locals are i32, etc.

IMO it would be very useful to implement wasm64 bit output now.
The feature has finally been standardized into the WASM spec!
https://github.com/WebAssembly/memory64
https://github.com/WebAssembly/proposals?tab=readme-ov-file

I only speak regarding the go compiler wasm output. As all needed infrastructure is already there, it should be a relatively small implementation, I guess.

Opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ProposalToolProposalIssues describing a requested change to a Go tool or command-line program.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions