LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 06-16-2006, 12:31 AM   #1
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 273

Rep: Reputation: 48
Faster Linking


I'm using distcc & ccache to speed up the compilation step.

I have 20 PC's under my control....

How can I speed the link step?

Any suggestions?
 
Old 06-17-2006, 11:16 AM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
As you know, linking consists of merging two or more objects. It should follow without much discussion, then, that in order to link you must have all the objects you want to link together, and the merging of those objects must take place in the same process.

The way the GNU linker works is taking all objects and merging them in one big lump. That makes it inherently unparallelizable (which I figure is what you're looking for). However, by splitting the task up into smaller bits--e.g. linking the two smallest objects until only one remains--it becomes parallelizable, but you also do more linking than if you just link it all at once. I believe this process is what's meant by `incremential linking'.

My first intuition would be to try to link in a kind of merge-sort'ish way, but I may be way off here.

In any case, I think the way forward--assuming your final product is *one* object--is with incremential linking. Research that.

In case your final product is more than one object, you can of course parallellize by linking each object on a separate box (but I figure you don't have 20 objects). If you can't parallelize enough, again look into incremential linking.

I must admit I'm more or less pulling a brain fart out of my ass here, so please do your own research. I hope this will serve you well as a starting pointer, though.
 
  


Reply

Tags
clustering, faster, linking


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: Faster and Faster Compilation jeremy LinuxAnswers Discussion 5 12-06-2005 02:41 AM
Faster Pc ????? playstation freak Linux - Newbie 3 09-05-2005 10:26 PM
How much faster... X11 Linux - General 5 07-19-2002 07:42 AM
How much faster... X11 Linux - General 0 07-19-2002 01:51 AM


All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration