People seemed to object when I said it could take many hours to compile a real program.
>Actually, 3 minutes ia a incredibly long time to wait.
Anybody look at the graph link? It took 3 minutes to recompile the linux kernal. I suppose it is broken into many sub sections. Regardless, it is likely that the time to complete the work was mostly spent locating and loading the pieces from the HD.
>When you are developing, you might want to see how a single change
> is affecting your code. You might be compiling once every minute or so.
I'm not much of a programmer, but I do some programming. When I recompile my "main", it takes longer to move the mouse to the recompile button than to get the error reports back. If I do a complete rebuild, it might take 10 seconds, and it seems to me that is mostly Windows swapping things around in memory and on the HD.
A Real programmer I used to follow online laughed when someone thought a million line program was a major undertaking. The programmer thought it would take him personally only a few weeks to generate a million lines. (He would be putting it together from previous work and purchased code packages, not typing it all personally.) Admittedly I haven't followed any of this for a couple of years, but it did take many hours to do a complete recompile of several million lines of code. This fellow had enough RAM to do it all in a RAM disk. He didn't just wait around for it to complete, because he had plenty of work he could accomplish while waiting.
If a program is broken down into appropriate pieces, as it should be, getting the result of a change of one line shouldn't take long, because most of the pieces have already been done, and all that happens is relinking. When you do a complete rebuild with optimization, it will take a while.