WebAssembly / WebAssembly/component-model
Canonical abi: inline passing
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 1.4k
- Forks
- 130
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 15
Description
There doesn't seem to be an option right now to force parameters to be passed inline
For record, list<T, N>, tuple, flags, etc., they are all transfer forms of ptr + len.
This requires at least
- Know the layout defined by the type
- The layout has been filled and aligned correctly
- A little offset calculation instructions are needed to extract the field
or need
reallocis required to ensure compliance with the language-defined layout- A little offset calculation instructions are needed to extract the field
Is it possible to add an inline-passing option to omit these requirements?
I find this useful in languages where tuples exist.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue does not name a file, test, or entry point. Start by reviewing the canonical ABI specification and its handling of records, lists, tuples, and flags; the issue would need a decided design for inline passing and a corresponding specification change before implementation can be considered complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100