Skip to content

Use _start rather than main for the default entry point #15733

@sbc100

Description

@sbc100

We already do this in STANDALONE_WASM mode. In this most we have crt1.o which defines start which calls __wasm_eval_ctors then main then exit.

Doing the same thing for the normal code path should simplify the codebase and could be a codesize win (since we would no longer need to export __wasm_eval_ctors to JS).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions