<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi Mihai,<BR>
&nbsp;<BR>
Thanks for your reply.<BR>
&nbsp;<BR>
What I mean by a&nbsp;"compilation unit" is a&nbsp;source code&nbsp;file (which may include many header files) which&nbsp;is compiled into an object file.&nbsp;Assuming one follows&nbsp;standard&nbsp;conventions, each .cpp file&nbsp;constitutes one compilation unit (while .hpp files do not).<BR>
&nbsp;<BR>
My project contains a single&nbsp;.cpp file which includes many header files. The header files contain the complete&nbsp;definitions of the classes they declare, including member function definitions (it has to be this way because they are all template classes, so separate compilation is not possible).<BR>
&nbsp;<BR>
What I'm wondering is, can distcc help improve the compilation of my project, or is it only useful for projects with multiple compilation units?<BR>
&nbsp;<BR>
Thanks,<BR>
Nate.<BR>&nbsp;<BR>Date: Sun, 5 Sep 2010 03:55:04 +0200<BR>From: ionic@ionic.de<BR>To: distcc@lists.samba.org<BR>Subject: Re: [distcc] can distcc speed up the compilation of a single compilation unit?<BR><BR><PRE>Hi Nathan,<BR> <BR>I am unsure about what you refer to by "compilation units".<BR> <BR>distcc redistributes every single file to different locations (distcc <BR>hosts).<BR>The linking is (naturally) done on the host machine (that one <BR>redistributing, too).<BR>Preprocessing can either be done on the local machine (normal mode), or <BR>on the other distcc hosts (distcc pump mode).<BR> <BR>It cannot split up a file and distribute chunks of that to different hosts.<BR> <BR>So, unless you've got only one file, distcc (at least theoretically) <BR>speeds up the build process.<BR> <BR>If this is not what you asked for, please try explaining it again, as I <BR>could only guess what you really meant.<BR> <BR>Best regards,<BR> <BR> <BR>Mihai<BR> <BR> <BR> <BR>* On 05.09.2010 03:38 AM, Nathan Ridge wrote:<BR>&gt; Hello,<BR>&gt;<BR>&gt; I just came across distcc and it attracted my interest. I have a<BR>&gt; question about how it works: can it speed up the compilation of a single<BR>&gt; compilation unit, or can it only speed up the compilation of a project<BR>&gt; that involves several compilation units?<BR>&gt;<BR>&gt; In other words, does distcc simply distribute compilation by having<BR>&gt; different machines compile different compilation units and then linking<BR>&gt; them together at the end (in this case each machine is still compiling a<BR>&gt; complete compilation unit), or does it somehow split up a single<BR>&gt; compilation unit into chunks and give each chunk to a different machine?<BR>&gt;<BR>&gt; Thanks,<BR>&gt; Nate.<BR> <BR></PRE><BR>__ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc                                               </body>
</html>