Distcc: Difference between revisions

Content deleted Content added
m clean up, Replaced: SSHSSH using AWB
Bender the Bot (talk | contribs)
m External links: HTTP to HTTPS for Blogspot
 
(85 intermediate revisions by 62 users not shown)
Line 1:
{{lowercase|title=distcc}}
{{Infobox Software |software
| name = distcc|
| author = Martin Pool
logo = |
| developer = Fergus Henderson
screenshot = |
| latest release version = {{wikidata|property|preferred|references|edit|P348|P548=Q2804309}} | latest release date = {{Start date and age|{{wikidata|qualifier|preferred|single|P348|P548=Q2804309|P577}}|df=yes}}
caption = |
| programming language = [[C (programming language)|C]], [[C++]], [[Python (programming language)|Python]]
developer = Martin Pool |
| operating system = [[Cross-platform]]
latest_release_version = 2.18.3 |
| genre = [[Compiler]]
latest_release_date = [[November 30]], [[2004]] |
| license = [[GNU General Public License]] |
operating_system = [[Cross-platform]] |
| website = {{url|https://distcc.org}}
genre = Compiling tools |
license = [[GNU General Public License]] |
website = [http://distcc.samba.org/ distcc] |
}}
[[File:Distcc3 log and help.png|thumb|Distcc]]
In [[software development]], '''distcc''' is a tool for speeding up [[compiler|compilation]] of [[source code]] by using [[distributed computing]] over a [[computer network]]. With the right configuration, distcc can dramatically reduce a project's compilation time.<ref>{{cite web|author=Laurence Bonney |url=http://www.ibm.com/developerworks/linux/library/l-distcc/index.html |title=Reduce compile time with distcc |publisher=IBM |date=2004-07-22 |access-date=2011-08-24}}</ref>
 
'''distcc'''It is adesigned [[freeto software]]work [[computerwith program|program]] for [[compiling]]the [[C (programming language)|C]] programming language (and its derivatives like [[C++]] and [[Objective-C]]) source code over a computer network. It is designedand to work withuse [[GNU Compiler Collection|gccGCC]] as its backend, althoughthough it provides varying degrees of compatibility with the [[Intel C++ Compiler]] and [[Sun Microsystems]]'s compiler[[Sun Studio Compiler Suite]].<ref>{{cite web |author=Martin Pool |url=http://distcc.sambagooglecode.orgcom/svn/trunk/doc/web/faq.html]. With the right configuration, |title=distcc canfrequently dramaticallyasked reducequestions a|publisher=Distcc.googlecode.com project's|date=2007-02-23 compilation|access-date=2009-10-19 time.|url-status=dead |archive-url=https://web.archive.org/web/20090907163843/http://distcc.googlecode.com/svn/trunk/doc/web/faq.html is|archive-date=2009-09-07 }}</ref> distributedDistributed under the terms of the [[GNU General Public License]], distcc is [[free software]].
 
==Design==
The intention is to speed up compilation by utilising unused processing power on other computers. A machine with distcc installed can send code to be compiled across the network to a computer which has the distccd [[daemon (computer software)|daemon]] and a compatible compiler installed.
 
The intentiondistcc is designed to speed up compilation by utilisingtaking advantage of unused processing power on other computers. A machine with distcc installed can send code to be compiled across the network to a computer which has the distccd [[daemon (computer software)|daemon]] and a compatible compiler installed.<ref name=drdobbs>{{cite web|author=Daniel Robbins |url=http://drdobbs.com/184401764 |title=Distcc & Distributed Computing |publisher=Dr.Dobb's |date=2004-02-01 |access-date=2011-08-24}}</ref>
distcc works as an agent for the compiler. A distcc daemon has to run on each of the participating machines. The originating machine invokes a [[preprocessor]] to handle header files, preprocessing directives (such as #ifdef) and the source files and sends the preprocessed source to other machines over the network via [[Transmission Control Protocol|TCP]] either unencrypted or using [[Secure Shell|SSH]]. Remote machines compile those source files without any local dependencies (such as libraries, header files or macro definitions) to object files and send them back to the originator for further compilation.
 
distcc works as an agent for the compiler. A distcc daemon has to run on each of the participating machines. The originating machine invokes a [[preprocessor]] to handle header files, preprocessing directives (such as <code lang="C">#ifdef</code>) and the source files and sends the [[Translation unit (programming)|preprocessed source]] to other machines over the network via [[Transmission Control Protocol|TCP]] either unencrypted or using [[Secure Shell|SSH]]. Remote machines compile those source files without any local dependencies (such as libraries, header files or macro definitions) to object files and send them back to the originator for further compilation.<ref name=linuxgazette>{{cite web|author=V. L. Simpson |url=http://linuxgazette.net/107/simpson.html |title=Speed Compiling with Distcc |publisher=linuxgazette.net |date=October 2004 |access-date=2011-08-25}}</ref>
[[ccache]] is another tool aimed to reduce the compilation time by [[caching]] the output from the same input source files.
 
distcc version 3 supports a mode (called ''pump mode'') in which included header files are sent to the remote machines,
distcc is included in Apple's [[Xcode]] development suite.
so that preprocessing is also distributed.
 
==SeeRelated alsosoftware==
distcc was an option for distributed builds in versions of Apple's [[Xcode]] development suite prior to 4.3, but has been removed.
{{portal|Free software|Floss logos.svg}}
 
* [[ccache]]
=== Goma ===
* [[Electric Cloud]]
Goma is a similar tool made by Google to replace distcc & ccache in compiling chromium.
* [[distmake]]
 
* [[Icecream]]
=== Ccache ===
[[ccache]] is another tool aimed to reduce the compilation time by [[cache (computing)|caching]] the output from the same input source files. [[ccache]] can also use distcc as its backend, providing distributed compiling if it is not already cached by using the CCACHE_PREFIX environment variable.
 
*=== [[Icecream]] ===
icecream was created by SUSE based on distcc. Like distcc, icecream takes compile jobs from a build and distributes it among remote machines allowing a parallel build. But unlike distcc, icecream uses a central server that dynamically schedules the compile jobs to the fastest free server.<ref>{{Citation|title=icecream: Distributed compiler with a central scheduler to share build load|date=2017-12-27|url=https://github.com/icecc/icecream|publisher=icecc|access-date=2017-12-27}}</ref>
 
== See also ==
{{Portal|Free and open-source software}}
 
* [[Compile farm]]
* [[FlowTracer]]
* [[IncrediBuild]]
* [[Electric Cloud]]
 
==References==
{{Reflist}}
 
==External links==
* {{Official website|https://github.com/distcc}}
*[http://distcc.samba.org/ Official website]
* [https://google-opensource.blogspot.com/2008/08/distccs-pump-mode-new-design-for.html google distcc pump mode]
*[http://distcc.samba.org/download.html The distcc download page with licence information]
* [https://www.distcc.org/compared.html Comparison of related system]
*[http://www.icefox.net/articles/distcc.php distcc optimizations]
* [https://dmucs.sourceforge.net/ DMUCS – a Distributed Multi-User Compilation System]
* [http://www.distcc-elb.com/ DistCC Enterprise Load Balancer]
 
[[Category:Compiling tools]]
[[Category:Free computer programming tools]]
[[Category:Cross-platform software]]
 
[[Category:Unix programming tools]]
[[de:Distcc]]
[[fr:Distcc]]
[[nl:Distcc]]
[[pl:Distcc]]