Sunday, August 7, 2011

Chapter 1, question 2

2.  What does the compiler do?

It takes source code that I (or someone else) have typed, and identifies whether the source code contains errors that prevent it from being successfully compiled, or some issue needing a warning.  If there is an error or warning, it tells me about them.

If the code can be compiled, it produces an object file.  My compiler links that object file automatically to create an executable, unless I tell it not to.

No comments:

Post a Comment