Skip to content

Phase 2: bootstrap zackees/llvm-ld as a minimal COFF C++ library with mimalloc-pprof #95

Closed

Description

@zackees

Parent: #92

Develop the standalone source inside this checkout, then export it to zackees/llvm-ld without using a side checkout or worktree.

Requirements:

  • Pin a current LLVM revision and isolate the minimum LLD COFF/Common + LLVM support/PDB dependencies needed for MSVC and MinGW personas.
  • Keep this repository C/C++-only.
  • Expose a narrow C ABI around the current LLD library entry point.
  • Vendor/pin mimalloc-pprof and default to its unprofiled engine; provide a profiling-enabled configuration.
  • Document license, provenance, minimal-import/update procedure, and manual upstream LLVM pulls.
  • Prove byte-identical EXE/PDB output against the pinned stock LLD under deterministic settings, plus native Windows execution for MSVC and GNU/MinGW.
  • Benchmark allocator configurations before linker algorithm changes.
  • One validated PR in the source/export flow; close this issue on merge.

Activity

  1. zackees commented on Aug 27, 2026

    @zackees
    CollaboratorAuthor

    Repository created: https://github.com/zackees/llvm-ld . It will be populated from the reld checkout without creating a side checkout or worktree, after the allocator PR sequence is merged and the working tree is clean.

  2. zackees commented on Sep 17, 2026

    @zackees
    CollaboratorAuthor

    we've already tried this and it makes no difference. The linker does a gran mallocs and allocators out of those internally.

  3. zackees commented on Sep 18, 2026

    @zackees
    CollaboratorAuthor

    Closing per #154's checklist ("reconcile with merged llvm-ld work"). Every requirement is delivered in zackees/llvm-ld:

    • Minimal LLD COFF, MSVC + MinGW personas, pinned LLVM, C/C++ only: llvm-ld#2, llvm-ld#5. The README describes it as wrapping the WinLink and MinGW PE/COFF drivers.
    • Narrow C ABI: include/ and exports.map, pinned by tests/abi_contract.cpp, abi_smoke.c and abi_state_test.cpp.
    • mimalloc-pprof vendored and checksum-pinned: llvm-ld#2.
    • License, provenance, update procedure: PROVENANCE.md, provenance/, LICENSE-LLVM.txt, LICENSE-MIMALLOC.txt, LICENSE-LIBXML2.txt.
    • Byte-identical EXE/PDB vs stock LLD, plus native Windows execution: llvm-ld#5's gold link test, tests/windows_correctness.ps1. bench.py refuses to report a timing unless the output is byte-identical.
    • Allocator benchmark before algorithm changes: tests/windows_allocator_benchmark.ps1. The owner's comment above records the outcome: it makes no difference, because LLD takes large blocks and allocates out of them internally.

    The work then continued past this issue: in-process manifest merging (llvm-ld#8), parallel PDB emission (llvm-ld#14), and published benchmarks (llvm-ld#17). What remains on the reld side is #96.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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