News for hackers. Stuff that matters.
Re:Canonical creates a custom 40-processor ARM build machine by wolf550e on Sunday June 12, 2011 @10:46PM (#2647931)
How does distcc insteract with link time optimization?
Re:Canonical creates a custom 40-processor ARM build machine by SeveredCross on Sunday June 12, 2011 @11:23PM (#2648001)
Linking is done on the target box, and not on the distcc builders, so link-time optimization should be unaffected.
Re:Canonical creates a custom 40-processor ARM build machine by wolf550e on Monday June 13, 2011 @06:51AM (#2648640)
If by "unaffected" you mean "correct", then yes, as long as it is set up correctly for cross-compilation (I mean the compiler and assembler, which are unused on the target box in non-LTO mode).

But with GCC LTO, distcc will only distribute the parsing of the source code while the optimization and code generation will be done on the target box, so the speedup gain with distcc will be much smaller (LTO makes the ratio of work that parallelizable to work that is non-parallelizable much lower).

GCC LTO partitions the work, if it can interact with distcc it can distribute optimization too, at the cost of some missed optimizations. I don't know if that does the right thing in GCC 4.6.0