Commit 59cbe14
authored
Describe new-style commands. (#288)
The core idea of new-style commands is that all function exports are
command entrypoints, and they expect to be called on a fresh instance
which lives only for the direction of the call.
This is a generalization of the existing `_start` convention, which
already has the expectation of a fresh instance which lives only for
the direction of the call, and is one of the pieces need to enable
user-defined command entrypoints which don't take string arguments and
don't return an i32 status code.
To show how this works in practice, the following patches implement
this new behavior in wasm-ld and wasi-libc:
- https://reviews.llvm.org/D81689
- WebAssembly/wasi-libc#2031 parent 897d819 commit 59cbe14
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
0 commit comments