Skip to content

[NativeAOT-LLVM] Enable bulk memory by default and as a baseline #2628

Open
@SingleAccretion

Description

@SingleAccretion

Zeroing memory (for the GC) is the biggest contributor to startup in a hello world app. We should unconditionally enable bulk memory to mitigate this.

Note that this implies enabling it for the native runtime binaries, although we should of course also enable it for code compiled with ILC. Since we do not want to ship multiple kinds of runtime binaries, any option enabled in this manner becomes a hard requirement - which is ok for bulk memory as it is pretty widely supported.

To ensure there is a single source of truth for all code (runtime and compiler-produced), there should be a central list of compilation options like this, which is then read in by both the CMake scripts and build integration targets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-LLVMLLVM generation for Native AOT compilation (including Web Assembly)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions