Professional Documents
Culture Documents
Compilers
Microsoft’s Visual C++ Compiler (included in Visual Studio)
Other Compilers are focused towards UNIX operating systems and not ideally suited to windows
development
cl command
GCC is not designed to run on Windows and only does so with some help.
Fortunately, a developer on the Visual C++ Team at Microsoft has kindly provided a very simple
distribution
There is no official distribution of GCC compiler, every individual and organization has their own
distributions.
Source files (*.c, *.cpp, *.h) ->Pre-processor ->(*.i)-> Compiler-> (*.obj) -> Linker-> (app.exe)
.H for the declarations you might like to share among source files. Names of things in C need to be
declared before they can be used, so it's common to declare the common things that may be used by
different parts of a program in the header file.
The compiler itself compiles one file at a time. It doesn't include anything. It expects the preprocessor to
do that.
The source code in the main source file has been compiled and the results of the compilation are stored
in an object file, an intermediate representation ready for the linker.
We can't run object files. We need them to be linked together to form an executable.
~1