Examining the Compilation Process. part 2.

“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

Complete Story

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis