Re: parallelizing ghc

From: Evan Laforge
On Wed, Jan 25, 2012 at 11:42 AM, Ryan Newton
wrote: package list for me. ?The time is going to be dominated by linking, which is single threaded anyway, so either way works.
What is the state of incremental linkers? ?I thought those existed now.
I think in some specific cases. I've heard there's a microsoft one? It would be windows only of course. Is anyone using that with ghc?
gold is supposed to be multi-threaded and fast (don't know about incremental), but once again it's ELF-only. I've heard a few people talking about gold with ghc, but I don't know what the results were.
Unfortunately I'm on OS X, I don't know about any incremental or multithreaded linking here.
Neither do I. On my older machine with 2GB RAM, builds are often dominated by ld because it starts thrashing. And not many linkers target Mach-O. I've been toying with building my own ld replacement. I don't know anything about linkers, but I'd say at least even odds that I can do better than this. John L.

I've been toying with building my own ld replacement. I don't know anything about linkers, but I'd say at least even odds that I can do better than this.
I'm guessing linkers are hard, but gold proves that if you keep the scope small and use modern techniques you can get really good improvements over gnu ld. I think the gold author had quite a bit of linker experience though. I'd think apple would care about linker performance... I'm even a little surprised Xcode doesn't have something better than a lightly hacked gnu ld.

On Thu, Jan 26, 2012 at 3:44 PM, Evan Laforge
I'd think apple would care about linker performance... I'm even a little surprised Xcode doesn't have something better than a lightly hacked gnu ld.
Someone mentioned that it was on their wish-list at LLVM 2010 conference... it's hinted at here too: http://llvm.org/devmtg/2010-11/Spencer-ObjectFiles.pdf. He might know if anyone is actually working on one. -n
participants (3)
-
Evan Laforge
-
John Lato
-
Nathan Howell