C Language Source Code to Exe | Build Process | Compilation, PreProcessor ( Theory )



C Language Source Code to Exe | Build Process | Compilation, PreProcessor ( Theory )

C Language Source Code to Exe | Build Process | Compilation, PreProcessor ( Theory )

In this video tutorial for beginners you will learn how C Programming Language works / executes. All the steps ( preprocessing, compilation, linking ) involved i.e the build process from writing a c source code to generating an executable from it are explained.

C is a general purpose programming language and by using it, we can write the instructions for the computer or programs.

The instructions written in any programming language in human readable format is called as the source code and here the instructions written in the C programming language is called as the C source code and it is saved with .c extension.

When we write a computer program, we are going to store that in the Computer memory as the computer file and the file which is containing this source code is called as the source file and if the file is containing the source code written in the C programming language then that file is also called as the C source file.

Now while writing in the C language, it provides a lot of built-in features to implement the common operations that we have to do in the program through C standard library file.

Because the computers they can only understand the code which is written in the binary language of the machine code. and that’s why we need to convert the source code that we have written in the C language to machine code and we can do that by performing the compilation process.

During the compilation process the pre processor program will process the source code first and then that processed code will be given to the compiler. Some compilers directly generate the machine code and it is also called as the object code and it is saved in a file with .OBJ extension, and some generate the assembly code and then assembler program has to be used to convert it to generate the object code.

Then the object codes are linked together along with c standard library function by a program called as linker to get the executable file. the executable in windows environment have the .exe extension.

Then the executable will be loaded to the primary memory ( RAM ) using a program called as loader and then the processor will execute that.

All these programs required to create an executable from c source code come in a bundle and it is called as tool set. Once you install the toolset you will get all these programs.

For more tutorials visit our website
http://www.LearningLad.com

LearningLad in social media
Facebook http://www.facebook.com/LearningLad
twitter http://www.twitter.com/LearningLadEdu
Google+ http://www.google.com/+LearningLad

Comments are closed.