Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename no-argument `main` to `__nullary_main`. Change the ABI for the user entry point to rename `main` to `__main_argc_argv` when it has argc/argv. This is needed because wasm requires caller and callee signatures to match, so the traditional trick of passing main arguments even if it doesn't expect them doesn't work. LLVM and related tools have been using the name `__original_main` for a similar purpose, but that's a confusing name. There's also a change here in that this is renaming the argc/argv form rather than renaming the nullary form. The choice is somewhat arbitrary, but I think it's slightly nicer to bias the aesthetics toward the no-argument form, because that's the smaller and simpler form. * Fix typo. * Reword and expand on the proposal. Clarify the "entrypoint" terminology, and mention that export names may differ from ABI symbol names.
- Loading branch information