3 ms·
> 1) linking (I don't know of any parallel linker) How about ld.gold?
by krasin 11y ago
> 1) linking (I don't know of any parallel linker)
How about ld.gold?
- zvrba 11y agoOh, I wasn't aware that it was multithreaded. I just found out about it now. Did you benchmark gold to find out how much MT speeds up linking?
- krasin 11y agoI didn't make precise benchmarking, but when used on a real-world codebases, it speeds up linking about 2x. One trick to know: never make ld.gold the default system linker, because there would always be awkward kernel modules which will be corrupted at some point, because they would rely on ld.bfd. Instead, it's recommended to specify -fuse-ld=gold in the command line for your code, see https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html