Ports
Collections Versions Info Sign in

A Modern Linker 1.0.3

Mold is a faster drop-in replacement for existing Unix linkers.

cd Ports/mold
./package.sh

Screenshot

mold is a faster drop-in replacement for existing Unix linkers. It is several times faster than the LLVM lld linker, the second-fastest open-source linker which I (Rui Ueyama) originally created a few years ago. mold is designed to increase developer productivity by reducing build time, especially in rapid debug-edit-rebuild cycles.

Link speed comparison:

Program (linker output size) GNU gold LLVM lld mold
Chrome 96 (1.89 GiB) 53.86s 11.74s 2.21s
Clang 13 (3.18 GiB) 64.12s 5.82s 2.90s
Firefox 89 libxul (1.64 GiB) 32.95s 6.80s 1.42s

mold is so fast that it is only 2x slower than cp on the same machine.

Website: https://github.com/rui314/mold

Port: https://github.com/SerenityOS/serenity/tree/master/Ports/mold

Dependencies: zlib openssl

Sign in to vote

Edit this page

Port icon has the following license: Attribution 4.0 International (CC BY 4.0)