WebAssembly / WebAssembly/WASI
wasi calls from wasm start function
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 333
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 3
Description
is it allowed to call wasi functions from wasm start function?
- wasip1, if it matters.
- i mean this https://www.w3.org/TR/wasm-core-2/#syntax-start start function, not "_start".
i suppose the answer is no because, with some embedder apis, it's tricky or impossible to get a reference to the exported memory before the start function is called.
anyway, is it specified anywhere in the spec?
Contributor guide
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
Start with the WebAssembly core specification's start-function syntax and the WASI Preview 1 specification. Determine whether WASI calls from a wasm start function are specified as permitted, including the exported-memory concern raised here. Document the answer and cite the relevant specification sections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- operating-systems
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100