Linux Today: Linux News On Internet Time.

Examining the Compilation Process. part 2.

Oct 22, 2008, 20:01 (0 Talkback[s])
(Other stories by Mike Diehl)

"Would you be surprised if executing ./hello resulted in “Hello World."?

"I didn't think so. So why would we take the simplest program possible and split it into two separate files? Well, because we can. And what we gain from doing it this way is that if we make a change to only one of the files, we don't have to recompile any of the files that didn't change; we simply re-link the already existing object files to the new object file that we created when we compiled the source file that we changed. This is where the make utility comes in handy as it keeps track of what needs to be recompiled based on what files have been changed since the last compilation."

Complete Story

Related Stories: