On Saturday, 5 April 2014 at 22:30:28 UTC, Joakim wrote:
On Saturday, 5 April 2014 at 21:47:33 UTC, Asman01 wrote:
Today I've found a good alternative to slow gcc's linker: gold. Written by Google in C++ it's a linker writen for large code bases with C++ in mind. The author claims it's about 5 times fast than gcc's one. It does support ELF only and UNIX-like symtem I think it's enough to dmd on linux or am I missing something? I believe it can reduce a lot dmd's compilation speed on these system. It's under same GPL as gcc's ld. I wonder if we can use it to make dmd still fastest. :) It seems same case as Facebook needed a new C++ preprocessor for its large code base.

http://google-opensource.blogspot.com.br/2008/04/gold-google-releases-new-and-improved.html
https://events.linuxfoundation.org/images/stories/pdf/lfcs2012_ccoutant.pdf

Dmd already uses whatever the system linker is and on Arch that's gold. The Android NDK also uses gold by default, though they also provide the original bfd ld and a newer llvm-based linker started by MediaTek, mclinker:

https://code.google.com/p/mclinker/

Well, as far I know, it does invoke gcc and gcc does use the ld. I see this with -v flag. What am I missing? I'll check out this llvm-based linker. If it's the linker which I've hear they are planing to replace gcc ld it's a big step.

Reply via email to