Would use this at a fairly large company if we had windows and Mac support, probably could get budget to pay for the features it’s missing.
Mold: A Massively Parallel Linker
21–28 of 28 posts
Re: Mold: A Massively Parallel Linker
#22Re: Mold: A Massively Parallel Linker
#23Would use this at a fairly large company if we had windows and Mac support, probably could get budget to pay for the features it’s missing.
Hm - are the linking requirements for PE and COFF similar enough for that to work?
Mine is also much faster than mold/wild, because I do much less work, and I have all the objects already in memory. Similar to tinycc. Only when someone needs a very unusual unsupported linker feature, I have to fallback to an external linker, which is ~100x slower. The less work it has to do, the faster. I dont appreciate the unix habit to use intermediate files all along, which needs additional readers and writers.
Re: Mold: A Massively Parallel Linker
#24shameless plug: lld 23.x is significantly faster than 22.x! I wrote about the optimizations in https://maskray.me/blog/2026-04-12-recent-lld-elf-performanc... As a side note, parallel input file parsing and symbol resolution aren't a silver bullet. I have an experimental branch (net ~800 lines of code) adding this to lld/ELF, but it actually loses performance when restricted to --threads={1,2} I read how mold impleme…
Re: Mold: A Massively Parallel Linker
#25Would use this at a fairly large company if we had windows and Mac support, probably could get budget to pay for the features it’s missing.
That sounds like you should get in contact with Rui Ueyama. If anybody asks, someone on HN said it seemed like a no-brainer.
Re: Mold: A Massively Parallel Linker
#26Earlier quoted context omitted.
I guess this sentence from the Wild readme is also relevant: Mold is already very fast, however it doesn't do incremental linking and the author has stated that they don't intend to.
To be clear, Wild also doesn't do incremental linking yet but plans to in the future
Before I created lld, linking was much slower than it is today, and people somehow seemed to accept that as a given. People would often argue that since linking was slow, we needed to reduce the amount of linking work by implementing incremental linking. I thought that was too pessimistic. Why don't we just make the usual full link much faster, ideally almost as fast as a cp command, so that we don't need incremental linking nearly as much?
In other words, I wanted to solve the slow link problem head-on rather than work around linker slowness. And now we can link multi-gigabyte binaries in a second or two, which makes incremental linking much less urgent than it was ten years ago. That's pretty much what I wanted to achieve.
Am I satisfied with the speed? No. Could incremental linking speed it up even more? Maybe. Would it still be useful? Sure. It may well be worth doing. But people don't need it nearly as badly as they did ten years ago. I wanted to solve the larger problem first.
Re: Mold: A Massively Parallel Linker
#27This is a wonderful paper that includes many optimization tricks that are generally applicable, including various optimizations that they retrofitted into lld. But I thought there was one meta optimization that was especially interesting (from page 2): > A new linker's early adopters knowingly accept such differences, which is one reason why drastic improvements tend to come from new linkers rather than existing ones…
Mold's definitely innovating. I use mold a lot for code embedding in my lisp. I needed extra null PHT entries in the ELF so I could easily patch in custom segments into the interpreter after the link was done. GNU pretty much ignored the feature request and LLVM probably never even saw the issue, but Rui shipped the --spare-program-headers feature pretty much immediately after I requested it and it immediately restor…
Re: Mold: A Massively Parallel Linker
#28Earlier quoted context omitted.
The nitter software still works and so do most of the servers except the most popular 2
> so do most of the servers except the most popular 2 Are you sure? All three servers I regularly use, as well as all of the mirrors that I found with a quick search, are down. If there are other servers still working then can you please give a hint about how I could find them?