Skip to content

Validate hosted MSVC startup and generated runtime-helper dependencies #617

Closed

Description

@LunaStev

Part of #611. Difficulty: very high. Audit baseline: master 3950416e (2026-09-12).

Current evidence

llvm/src/backend.rs selects console/DLL flags and static or dynamic CRT default libraries. tests/codegen_regressions.rs mainly proves custom-entry /NODEFAULTLIB images; it does not establish the ordinary hosted startup path across both architectures and CRT modes.

Scope

Audit and complete the ordinary Wave main-to-process-exit path under the existing MSVC startup model. Establish which generated memory, arithmetic and floating-point helper symbols each supported optimization/CRT mode needs and resolve them from matching runtime inputs. Keep compiler-host allocator settings separate from the generated program runtime choice. This work must not replace std/sys providers with libc wrappers.

Completion criteria

Native x64 and ARM64 fixtures with implicit and explicit main return types, nonzero status, std output, globals and aggregate copies link and execute under every advertised CRT mode. Capture undefined-helper and mismatched-runtime failures. Custom entry/no-default-libraries retains its explicit contract. Unsupported mode combinations fail clearly. Runtime-dependent fixtures must exercise ordinary startup instead of bypassing it with /NOENTRY or hand-written assembly. Parameterized main/new language features are outside scope (#452).

Dependencies and boundaries

#498; #613; #619 handles DLL lifetime/ownership, #618 handles stack probes.

Activity

  1. added
    build
    enhancement
    help wanted
    needs testing
    on Sep 12, 2026
  2. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildenhancementhelp wantedneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions