Skip to content

Describe legacy commands. #288

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

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions legacy/application-abi.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ There are two kinds of modules:
- A *command* exports a function named `_start`, with no arguments and no return
values.

`_start` is the default export which is called when the user doesn't select a
specific function to call. Commands may also export additional functions,
(similar to "multi-call" executables), which may be explicitly selected by the
user to run instead.

Except as noted below, commands shall not export any mutable globals, tables,
or linear memories.

Command instances may assume that they will be called from the environment
at most once. Command instances may assume that none of their exports are
accessed outside the duration of that call.
Expand Down