3 ms·
> can you elaborate on the advantages offered by using LLD over the system linker? Performance. >> (usually more than 2x faster than GNU gold). I switched fr
by MaulingMonkey 10y ago
> can you elaborate on the advantages offered by using LLD over the system linker?
Performance.
>> (usually more than 2x faster than GNU gold).
I switched from bfd to gold to realize a ~6x performance gain on a project (~1 minute linking -> ~10 seconds linking, times 10-20 subprojects, times a few build configurations - really adds up!) I'll keep in mind that I now also have the option to switch to LLD for another 2x (12x total?)
- pjmlp 10y agoIn addition to that, I don't know anything about LLD, but when a compiler toolchain for language X also has its own linker, it means the linker can take advantage of the language semantics, which aren't necessarily properly supported in a system linker. As an example, many of the C++'s drawbacks regarding build systems was because Bjarne wanted that the generated object files and libraries could be transparently linked by a linker that only understood C.
- oso2k 10y agoWhat makes LLD faster than gold? gold's improvement on gnu ld was focusing on ELF output and removing BFD internal representation. And shouldn't the name be llld?