Re:And so I'm giving up the Mozilla project - Jamie Zawinsk...
by Andrew-Dufresne on Friday February 11, 2011 @03:40AM
(#2205641)
Besides subsystems, tools like make and nmake utility can also reduce the compile time.
Make figures out automatically which files it needs to update, based on which source files have changed. It also automatically determines the proper order for updating files, in case one non-source file depends on another non-source file. As a result, if you change a few source files and then run Make, it does not need to recompile all of your program. It updates only those non-source files that depend directly or indirectly on the source files that you changed.
Re:And so I'm giving up the Mozilla project - Jamie Zawinsk...
by voxcogitatio on Friday February 11, 2011 @05:25AM
(#2205826)
Yes, but large projects often need to use recursive makefiles, which are notoriously flaky at detecting what has changed (if anything).
Re:And so I'm giving up the Mozilla project - Jamie Zawinsk...
by drothlis on Friday February 11, 2011 @08:02AM
(#2206150)
No project needs to use recursive make.
"Recursive make considered harmful": http://miller.emu.id.au/pmiller/books/rmch/
Even in a large project, there should be subysystems that a developer owns and works on that can be partitioned or isolated from the rest, and execute within a test harness on a dev machine -- a harness that feeds the subsystem inputs and records outputs.
Successful projects either begin with or evolve to a state where they have the architecture, the toolset, the process and the culture to allow devs to enjoy a fast code/debug cycle.