[Bug bootstrap/84402] [meta] GCC build system: parallelism bottleneck

sam at gentoo dot org gcc-bugzilla@gcc.gnu.org
Sun May 29 03:44:21 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84402

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

--- Comment #46 from Sam James <sam at gentoo dot org> ---
Even partially making the build less recursive would likely help a fair bit. 

The classic text on this is
https://accu.org/journals/overload/14/71/miller_2004/. This doesn't mean that
splitting up files is futile, but when watching a build, much of the time, make
doesn't even get to traverse into each of the directories, because it doesn't
know if it's able to. It can safely be done in stages.

Using includes would let you get a lot of the current state wrt split
directories. Could even just have a certain number of toplevel directories but
non-recursive within them.


More information about the Gcc-bugs mailing list