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

Saner wasm ABI #48

Open
fengb opened this issue May 14, 2020 · 0 comments
Open

Saner wasm ABI #48

fengb opened this issue May 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@fengb
Copy link
Owner

fengb commented May 14, 2020

Note — this depends on upstream features:

  • LLVM Wasm multiple returns
  • Zig tuples (side requirement... we can fudge this if we need to)

With wasm supporting multiple returns and Zig doing tuples, we can actually return "complex" data without bitcast kludging. It's still not as nice as (named field) structs, but it's much better than the current representation.

  • Slices => tuple { [*]T, usize }
  • Matrices => tuple { [*]T, width: usize, height: usize }
  • Disassembly => tuple { [*]u8, usize, length: u8 }
@fengb fengb added the enhancement New feature or request label May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant