mold: A Massively Parallel Linker
Rui Ueyama
Key points
From the paper's conclusion- We present mold, a Unix/Linux linker that applies data parallelism systematically across the entire linking pipeline.
Abstract
Linking is a critical step in the software build process that combines compiled object files into a single executable or shared library. Despite decades of engineering effort, link times remain a significant bottleneck in the edit-compile-debug cycle, particularly for large C++ programs. Existing linkers exploit limited parallelism, leaving most CPU cores idle during linking. We present mold, a Unix/Linux linker that applies data parallelism systematically across the entire linking pipeline. We first analyze the architectural constraints that prevent existing linkers from scaling, including entangled symbol resolution and archive processing, and then show how a clean-slate design that decouples them overcomes these limitations. On large real-world programs, mold links multi-gigabyte debug binaries in at most a few seconds, and often in under a second. It is 2.4-16.1x faster than the state-of-the-art lld linker, and up to 112x faster than the traditional GNU ld. An ablation study shows that no single optimization dominates; the speedup comes from the cumulative effect of parallelizing all passes.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- PipeLink: Contract-Guided Linking of GPU Kernel ComponentsarXiv · 2026
- MorphSched: Workload-Aware Adaptive Scheduler Generation for LinuxarXiv · 2026
- HPC-Bench: A Comprehensive Benchmark for High Performance Computing CodesarXiv · 2026
- Can Agentic LLMs Write Task-Based Parallel Code? A Study of OpenMP Tasking, HPX, StarPU and TTGarXiv · 2026
- MetaFORGE: A Meta-Learning Framework for Harness Optimization in Automated Code Generation for Parallel ComputingarXiv · 2026
- RTP-LLM: Building an Evolvable and Reliable LLM Inference Engine at Alibaba ScalearXiv · 2026