C++ Source Code to Executable | Compilation, Linking, Pre Processing | Build Process Explained

Published: 14 March 2019
on channel: LearningLad
202,192
4.2k

In this C++ video tutorial you will learn how c++ works, pre processing, compilation, linking all the steps involved from writing a cpp program to generating the executable file and then running that executable file.

C++ is a general purpose programming language that we can use and write the computer programs.

The code written in any programming language is called as the source code and the code written using the C++ programming language is called as the C++ source code.

C++ source code is saved with .cpp Extension and .hpp extension.

you can write the c++ program by using the cpp standard library and external library( static library or dynamic library )

we directly can’t execute the code that we have written in the C++ programming language because as a programmer we can look at the code and understand what exactly is going on but the computers can only understand the code written in the machine language.

the process of creating an executable file from the source code is called as the build process.

so the first step in the build process in order to create an executable file is preprocessing.
we use a program called as pre processor and this preprocessor is a macro processing program.

Next we need to translate the code to machine code and for that purpose we use a program called as the compiler.

compiler is a computer program that transforms the code written in the higher level programming language to lower level programming language and this process is called as the compilation process.

The assembler will take the Assembly code and it will generate the object code or the machine code.

The linker will take the object files generated, it will link them together and it will generate the executable file.

The loader will load the executable file into the main memory which is the RAM so that the CPU can execute that program.

Get the source code of this tutorial at our website
http://www.LearningLad.com

Watch Video tutorials in HINDI at
   / learningladhindi  

#CProgramming #LearningLad

Catch us on Social Media
facebook   / learninglad  
twitter   / learningladedu  
Google+ http://www.google.com/+LearningLad


On this page of the site you can watch the video online C++ Source Code to Executable | Compilation, Linking, Pre Processing | Build Process Explained with a duration of hours minute second in good quality, which was uploaded by the user LearningLad 14 March 2019, share the link with friends and acquaintances, this video has already been watched 202,192 times on youtube and it was liked by 4.2 thousand viewers. Enjoy your viewing!