IT lexicon › Programming › lld

lld

Programming På svenska → Updated: 2026-11-07
More info
Owner
LLVM Project
Type
Linker
License
Apache 2.0 with LLVM exception
Website

The LLVM project's own linker, built because GNU ld was too slow, and now the default on several operating systems.

The first attempts rested on an abstract "atom" model meant to fit every object format, which turned out to fit none of them particularly well. Around 2015 Rui Ueyama rewrote the ELF port from scratch with a much plainer design, and that is the version that took off. Today lld handles ELF, COFF, Mach-O and WebAssembly, and replaces GNU ld with a single flag: -fuse-ld=lld. FreeBSD and Android are among those that have made the switch.

For link-time optimization the advantage is that lld reads LLVM bitcode natively, with no linker plugin, and runs the ThinLTO backends in parallel by itself. Ueyama later moved on and wrote mold, which is faster still — a rare case of an author outcompeting their own work.

← Back to the lexicon