Skip to content
SoftwareExplainer

Bald is a new linker that claims to beat mold at its own game

Kevin Heavey's Bald promises faster full links and incremental linking across Linux, macOS, Windows and WebAssembly, with benchmarks to back the claim.

Screen-print poster of interlocking puzzle pieces in black and ochre on cream paper, one ochre piece sliding into the last open gap at the right
Separate pieces, one finished program.
On this pageJump to section

A new linker called Bald arrived on December 4, and its author says it is the fastest linker in the world. Not the fastest on Linux, or the fastest for one kind of program, but the fastest everywhere: Linux, macOS, Windows, and WebAssembly.

Kevin Heavey announced Bald in a short post on his site, with the code published on GitHub under an MIT license. The claim rests on two things. Bald links programs faster than its rivals even when it starts from scratch, and it also offers incremental linking, which reuses work from the previous link instead of redoing it. By the author's own benchmarks, it links ELF binaries 1.56 times faster than mold, Mach-O binaries 1.62 times faster than Apple's own linker, and WebAssembly 4.84 times faster than LLVM's linker.

That is a large claim about a small, unglamorous program. Linkers rarely get announcements at all, let alone superlatives. The question is not whether the numbers look good. It is whether they survive contact with other people's builds.

What a linker actually does

A compiler turns source code into object files, one per source file. Those files are fragments: each one holds machine code with blank spaces where it refers to functions and variables defined somewhere else. The linker's job is to resolve those references, lay the pieces out in memory, and produce the finished executable.

Most developers never think about it, because most of the time it is fast enough to ignore. It stops being ignorable on large programs. A debug build of a browser or a game engine can produce object files totalling gigabytes, and the final link can take seconds or minutes. That cost lands on every edit, because changing one line of code means linking the program from scratch again.

Compilers already solved the equivalent problem for themselves. When you change one file, the compiler rebuilds only that file. Linkers, with few exceptions, start over every time. That gap is the opening Bald is aimed at.

Diagram of a build: source files become object files through the compiler, then the linker combines them into one executable. Changing one file means recompiling only that file; the rest is reused.
The compiler builds each file separately. The linker joins the results. Source.

Two kinds of faster

Bald's first speed claim is the ordinary kind: a full link, from scratch, done faster. The announcement publishes a table of results, measured on each platform natively, meaning the macOS numbers were measured on a Mac and the Windows numbers on Windows Server.

FormatBald's speedupMeasured against
ELF (Linux)1.56xmold
Mach-O (macOS)1.62xApple ld
Mach-O (macOS)2.52xld64.lld
PE/COFF (Windows)1.3xRAD
PE/COFF (Windows)1.8xLLD
WebAssembly4.84xLLD
WebAssembly1.72xWild

The second claim matters more for day-to-day work. Incremental linking keeps the results of the previous link and redoes only the parts that changed. It is the feature developers have wanted from linkers for years, and it is rare because it is hard: the linker has to track exactly which pieces depend on which, and get that bookkeeping right every time, or it produces a broken program.

Bald turns it on by default for debug builds with debug information, and off for optimized builds and builds using link-time optimization, where the program is reshaped as a unit at link time anyway. A --no-incremental flag turns it off, and --stats prints link timings for anyone who wants to check the claim on their own machine.

The claim needs independent witnesses

Every number in that table comes from the author's own benchmarks, published in the project's repository with the workloads listed. Heavey says so himself, with a caveat in the announcement: headline results leave out a lot of variance across workloads. That is the honest version of the claim, and it is also the reason to wait before repeating the superlative as fact.

There are two things no benchmark table can prove on day one. The first is correctness. A linker that produces a wrong binary quickly is worse than a slow one, and linkers are full of edge cases: obscure object-file formats, unusual symbol layouts, decades of accumulated behavior that other tools quietly depend on.

Heavey is candid about this too. He writes that he is not one of the handful of linker experts in the world, and that the existing linkers are full of rare but serious bugs. His testing strategy is to use the older linkers as oracles, comparing Bald's output against theirs.

The second is breadth. The published benchmarks cover 7 Linux application links, 14 macOS links, 6 Windows applications, and 49 WebAssembly workloads against LLD. Those are real programs, but they are the author's choice of programs. The claim will be settled the way such claims always are: by other people running it on their code, including the awkward cases.

There is a third wrinkle, and Heavey does not hide it. Bald was built in part with AI assistance, over a few months of part-time work. He says the benchmarks were the bottleneck, needing a variety of machines and operating systems, and that full-time work might have run a server bill as high as $10,000 a month. The project invites contributions, with a warning that sloppy ones will be blocked.

The race it joins

Bald arrives in the middle of a genuine contest over the last step of the build. For about twenty years, the default linker on most Linux systems has been GNU ld, a program whose design predates the multi-core era. LLVM's lld sped things up considerably. Then mold, written by Rui Ueyama, the same engineer who wrote lld, pushed link times down to a second or two on multi-gigabyte debug builds by spreading the work across every core.

Mold is not standing still. Version 3.0 shipped on October 5, 2026, a complete rewrite from C++ into Rust, and its stated ambition is to become the default linker in Linux distributions, replacing GNU ld at /usr/bin/ld. Wild, another Rust linker, is also in the running and already fast on Linux and WebAssembly, with incremental linking on its roadmap. Bald's entrance makes three credible challengers to the old default, all written in Rust, all chasing the same seconds.

That context is what makes the announcement interesting beyond its numbers. The linker used to be the part of the toolchain nobody touched. Now it has a race, a roadmap, and an audience of developers whose builds got slower as AI started writing their code faster. Heavey names that directly: the compiler's output arrives faster than ever, and the link is the step that has not kept up.

Trying it

Bald is designed as a drop-in replacement. It installs through npm (npm install -g --allow-scripts=@bald-linker/bald @bald-linker/bald, which needs Node.js 22 or newer) or from source with Cargo, though the full build needs a shared LLVM development SDK and a C++17 compiler. Pointing Clang at it takes one flag, --ld-path=/path/to/bald, and Rust projects can wire it in through Cargo's configuration. It can also pretend to be the linker it replaces, running under names like ld.bfd, ld.lld, or lld-link, so existing build scripts keep working.

Support covers ELF on ten CPU architectures, Mach-O on arm64 and x86-64, PE/COFF on x86-64, i386 and ARM64, and WebAssembly in 32-bit and 64-bit forms. That breadth is part of the pitch: one tool for every platform a project ships to, rather than a fast linker for Linux and the stock tooling everywhere else.

For now the sensible way to treat Bald is as a promising first release with a testable claim. Run it on a debug build, pass --stats, and compare. The numbers in the announcement are the author's. The verdict belongs to everyone else's build farm.

Related reporting

More from grep.tips

All articles