Re:Parallel GCC: a research project aiming to parallelize a ...
by blattimwind on Saturday September 14, 2019 @12:04PM
(#20971674)
From my observations multi-threading the linker would be more useful, since for small changes in bigger projects the linking step usually takes a lot longer than compiling a couple units.
[ Parent
| on HN ]
Re:Parallel GCC: a research project aiming to parallelize a ...
by kardos on Saturday September 14, 2019 @12:16PM
(#20971758)
In a similar vein, not all units cost the same to compile -- even with many jobs in a make -j situation, toward the end of the build there may be only a few units still in progress. These lengthy 'stragglers' might benefit the most from this parallelism and consequently reduce total compile time. Quite looking forward to this project landing in a stable release.
On the topic of linking-- can you sub in the gold linker for faster linking in your projects?
Re:Parallel GCC: a research project aiming to parallelize a ...
by tacostakohashi on Saturday September 14, 2019 @12:13PM
(#20971751)
There exists a multi-threaded linker called gold.
Re:Parallel GCC: a research project aiming to parallelize a ...
by ndesaulniers on Sunday September 15, 2019 @10:45AM
(#20977410)
LLD (llvm's linker) is also threaded but much faster than gold.
Re:Parallel GCC: a research project aiming to parallelize a ...
by ef004 on Saturday September 14, 2019 @12:14PM
(#20971754)
Ive never found linking to take more than 5 seconds with the standard linker which, but lld exists and its super fast in my experience. But i guess its only needed whon working on huge c++ like firefox or sth. like that.
Re:Parallel GCC: a research project aiming to parallelize a ...
by barrkel on Saturday September 14, 2019 @02:14PM
(#20972661)
Linking is isomorphic to tracing, moving GC. Effectively, the linker relocates objects in memory and writes a freeze-dried "heap" for the OS loader (another linker) to page in later.
Linker slowness ~= GC pause. The cost is approximately proportional to the size of the traced graph.
Re:Parallel GCC: a research project aiming to parallelize a ...
by seamyb88 on Saturday September 14, 2019 @03:16PM
(#20973074)
I also find that the linker is the issue. Yes for performance, but also for testing (to the point of failure) linux's 'out of memory' scenario (try make -j8 on the llvm source, for example).