Parallel, Incremental Linking

2010-12-07 Thread John Smith
The bottleneck for building on my multi-core machine is ld, which spends a considerable time consuming 100% of one core after ghc has finished generating object files. Moreover, GHC is largely IO bound, while ld is CPU bound; incremental linking would enable the two tasks to be performed

Re: Parallel, Incremental Linking

2010-12-07 Thread Max Bolingbroke
On 7 December 2010 08:54, John Smith volderm...@hotmail.com wrote: Gold in an incremental and multi-threaded linker, but can only output ELF (not Windows). Is there a cross-platform solution suitable for GHC? Not AFAIK. One thing that would probably help a lot is if GHC-generated code stopped

Re: Parallel, Incremental Linking

2010-12-07 Thread Bulat Ziganshin
Hello John, Tuesday, December 7, 2010, 11:54:22 AM, you wrote: The bottleneck for building on my multi-core machine is ld, which afaik, there was some alternative linker, at least for linux systems -- Best regards, Bulatmailto:bulat.zigans...@gmail.com

Re: Parallel, Incremental Linking

2010-12-07 Thread Johan Tibell
On Tue, Dec 7, 2010 at 12:00 PM, Bulat Ziganshin bulat.zigans...@gmail.com wrote: Hello John, Tuesday, December 7, 2010, 11:54:22 AM, you wrote: The bottleneck for building on my multi-core machine is ld, which afaik, there was some alternative linker, at least for linux systems gold,

RE: incremental linking?

2003-01-27 Thread Simon Marlow
[Simon] might be worth adding to the docs (title: linking times on Suns, Sun's ld vs GNU ld; explanation: see previous mails)? See http://www.haskell.org/ghc/docs/latest/html/users_guide/faq.html specifically the last question. Cheers, Simon

Re: incremental linking?

2003-01-25 Thread Hal Daume III
of binutils (up to and including 2.13) are reported to have problems on Solaris, so don't throw away Sun's tools, but it looks as if our case is now closed (and incremental linking isn't an issue anymore with these new link times!-) Thanks for the helpful feedback, and Good Luck

Re: incremental linking?

2003-01-25 Thread Claus Reinke
Hi Hal, How did you get ghc to use gld when doing --make instead of standard ld? I'm having the exact same problem you were and I'd love to make it work faster. [Simon] might be worth adding to the docs (title: linking times on Suns, Sun's ld vs GNU ld; explanation: see

Re: incremental linking?

2002-11-30 Thread Claus Reinke
tools, but it looks as if our case is now closed (and incremental linking isn't an issue anymore with these new link times!-) Thanks for the helpful feedback, and Good Luck with the other suspiciously slow systems! Claus (*) a little stumbling block here: gcc refers to PATH only *after* perusing

RE: incremental linking?

2002-11-29 Thread Simon Marlow
I too am getting link times in the several minutes range for my modestly sized project, I am on a standalone dual-cpu redhat linux box with 5.04.1 (no nfs, no nuttin') the project is available at http://repetae.net/john/computer/ginsu/ I think there is definatly something fishy going

Re: incremental linking?

2002-11-29 Thread Claus Reinke
chasing takes a lot of time - Suns (?): linking takes too long will report again if we get better news.. Claus PS. if we get linking times down to what seems possible, incremental linking would no longer be urgent - we'll see.. ___ Glasgow-haskell

RE: incremental linking?

2002-11-27 Thread Simon Marlow
More fun with Haskell-in-the-large: linking time has become the main bottleneck in our development cycle. The standard solution would be to use an incremental linker, but it seems that gnu does not yet support this:-| Hmm, I've never heard of linking being a bottleneck. Even GHC itself

Re: incremental linking?

2002-11-27 Thread C.Reinke
Hmm, I've never heard of linking being a bottleneck. Even GHC itself links in about 3-4 seconds here. One common problem is that linking on a network filesystem takes a *lot* longer than linking objects from a local disk. It's always a good idea to keep the build tree on the local disk,

RE: incremental linking?

2002-11-27 Thread Simon Marlow
Unfortunately, we're not talking seconds, but coffee-breaks of linking times on our Sun (yes, the stuff is in the range of a large compiler - we're fortunate enough to be able to build on rather substantial third-party packages, think haskell-in-haskell frontend distributed over unusually

Re: incremental linking?

2002-11-27 Thread Andre Pang
On Wed, Nov 27, 2002 at 09:50:56AM -, Simon Marlow wrote: More fun with Haskell-in-the-large: linking time has become the main bottleneck in our development cycle. The standard solution would be to use an incremental linker, but it seems that gnu does not yet support this:-| Hmm,

RE: incremental linking?

2002-11-27 Thread Simon Marlow
On Wed, Nov 27, 2002 at 09:50:56AM -, Simon Marlow wrote: More fun with Haskell-in-the-large: linking time has become the main bottleneck in our development cycle. The standard solution would be to use an incremental linker, but it seems that gnu does not yet support this:-|

RE: incremental linking?

2002-11-27 Thread Hal Daume III
More fun with Haskell-in-the-large: linking time has become the main bottleneck in our development cycle. The standard solution would be to use an incremental linker, but it seems that gnu does not yet support this:-| Hmm, I've never heard of linking being a bottleneck. Even GHC itself

RE: incremental linking?

2002-11-27 Thread Simon Marlow
More fun with Haskell-in-the-large: linking time has become the main bottleneck in our development cycle. The standard solution would be to use an incremental linker, but it seems that gnu does not yet support this:-| Hmm, I've never heard of linking being a bottleneck. Even

Re: incremental linking?

2002-11-27 Thread Duncan Coutts
On Wed, 27 Nov 2002 15:20:44 - Simon Marlow [EMAIL PROTECTED] wrote: The runtime loader stuff I'm working on[1] takes around 10 seconds to compile ... and 3 minutes to link it with libHSbase and libHSrts. (This is on a 500MHz PIII). Linking is a huge bottleneck once you start

Re: incremental linking?

2002-11-27 Thread John Meacham
I too am getting link times in the several minutes range for my modestly sized project, I am on a standalone dual-cpu redhat linux box with 5.04.1 (no nfs, no nuttin') the project is available at http://repetae.net/john/computer/ginsu/ I think there is definatly something fishy going on. I don't

Re: incremental linking?

2002-11-27 Thread Andre Pang
On Wed, Nov 27, 2002 at 03:55:54PM -, Simon Marlow wrote: Those who experience long link times (longer than a few seconds), please reply with your - platform / OS version - versions of relevent things (GHC, GCC, binutils). - time to link 'main = print hello'. Platform: Debian