Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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#203
- Loading branch information