C++ Source Code to Executable | Compilation, Linking, Pre Processing | Build Process Explained
HTML-код
- Опубликовано: 17 сен 2024
- 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
www.LearningLad...
Watch Video tutorials in HINDI at
/ learningladhindi
#CProgramming #LearningLad
Catch us on Social Media
facebook / learninglad
twitter / learningladedu
Google+ www.google.com/...
This is the best series for learning c++, THANK YOU VERY MUCH SIR👍
pleasure
keep learning :)
@@LearningLad Amazing Sir 🤩
This is the best C++ video tutorial series available on RUclips. Keep up the good work. Make learning better and easier.
Thanks a lot!
Really?
If the assembler as you said
Translates the code written in c++,
i.e if we can open and read the assembler-generated files i.e .obj file, probably the content would be read like this:
"10110110110111"
or something like representation of binary number i.e "0*FFFF"..
In that case, why do we need a program called "linker"?
Because to me, the source code have already been converted into binary or
hexadecimal..
can you explain on this?
I loved it too ❤️❤️😍
@@footballCartoon91 assembly language is not binary, as I know
@@footballCartoon91 The compiler translates the code into assembly. After that the assembler will take input the assembly code and generate the object file(.o file). The Object file is in binary.
i'm a non domain person & i was confused abt the build & run process but now i could able to understand the process behind it.And ur explaination was easy to understand .thank you sir
glad my video helped you :)
Thanks for taking out so much time to prepare videos. I am just trying to start to learn C++ and it it just the third video in the series and yet I am getting a thrust. This video especially explains it the way any beginner like would like to understand. Very nicely prepared video.
Amazing explanation my brother recommended me to learn c++ from here. It's really amazing . Your teaching skills are excellent. Sir please make videos on c++ graphic
i will try.
keep learning :)
Thanks man. The best c++ tutorial channel I have ever seen.
it gives a good learning of c++ for beginners ..... thanks for giving us the wonderful video..
My pleasure
Keep Learning ☺️
Nice and neat articulation of how compilers work! Thank you!
You're very welcome!
This is a great series of videos on C++. I remember watching this when I was in uni and my professor had the teaching capability of a potato... It's great the refresh the basics, thanks LearningLad
You're very welcome!
I have looked for video like this for so long. Thanks for great explanation !! That helped me a lot !!
Pleasure
Very nice way to teach C++, thanks for this excellent series 👌💐
You are most welcome
Your channel is best compare to other channels teaching C++ language as I can understand the terms you taught. THANK YOU.
Thank you.
glad that my tutorials were helpful to you :)
love your hard work, it's worth to me :)
thank you :)
God level teaching bro/sir... Hats off !!
thanks man
keep learning :)
After two months I'm going to appear in campus placement.. Hope this playlist will help me..
best c++ explanation in youtube
thank you :)
The most excellent teaching video I had ever seen..😊😊
Good job man..👍
thank you :)
you are more useful to get the cpp knowledge,thanks a lot
My pleasure
Keep learning ☺️
I can't find this information (that too in the best quality!) in any RUclips video sir! Thank you do much sir 🙏🙏🙏. You have succeeded in providing an overview to me(I mean behind the scenes).
Pleasure
Very clear and well-organised presentation - thank you!
You're very welcome!
Thanks , the best course !!!
Thank you :)
Your teaching is very helpful to us . These are very good quality videos available. Thank you so much sir .
It's my pleasure
Amazingly explained!
Glad you think so!
Super sir it is very keen upto point in short thanku so much sir
Pleasure :)
Excellent explanation!
Thanks!
wow i have seen many videos, i have read many books. But this is far beyond of all. Good job, thanks
Glad it was helpful!
I think it's the best series for learning c++ very easily and in a fast manner😇😇😇
Thank you :)
who knew the indian accent could be used as asmr
Lol
puts me right to sleep (in a good way)
what a great breakdown! tysm 🙏
You're so welcome!
I just started your series
Your explanation is awesome
But it will be more awesome if you'll and some graphics..👍
Thank you very much sir😊😊😊👍👍
Hello Anil I am an old subscriber and I watched all the old C++ videos from the series that were containing 143 videos but now it is increasing.
Question: Is this a complete new series or you are adding few videos to the existing series?
Thanks for the awesome lessons, I am always learning something new :)
i'm planning to remake this video series.
So all these topics will be created again with more contents / concepts.
@@LearningLad This will be great, I am glad to hear that
@@LearningLad please provide link to the new series if you make one.! Thank you :)
Although I don't feel comfort while hearing Indian accent ; but this is the best programming tutorial I have ever watched . your crash videos like this one proofs that you are an experienced teacher or IT professor I love you and India and loved your work although I didn't complete it yet but I will InshaAllah . Keep the awesome work that you do and thank you for this tutorial
thank you
keep learning :)
Thank you so much a simple and informative information.💌
Thank you :)
Sir I think you are in top 1% in the world....
Very nice explanation......Thank you so much..
pleasure :)
great series to learn things from scratch
One of the best explanation and series. Thank you
You're very welcome!
very nice easy way to explain the process! Good Job
Thank you :)
sir u are the best
thank you
keep learning :)
Very good overview. Great video!
thank you :)
Really needed this. Can you do a video on how to compile and link multiple c++ files which are dependent on each other. What will the flow to compile and link all.
thank you.
i'll try to make that video :)
Thank you so much sir its really helpful.
great explanation.
You are most welcome
Thank you very informative! Liked and Subbed! 🎉
Awesome, thank you!
@@LearningLad always looking forward to more! I would love to learn Assembly code. :)
👍👍 TOO GOOD SIR
Thank you :)
Thank you very much, you are amazing man!
You're welcome!
very clear and visually easy-to-follow video! thank you! Would be further appreciated if you also include the explanation of assembler.
Thank you so much for the clear explanations!
You're very welcome!
Understood. Liked. Subscribed.
Awesome, thank you!
I m very thankful to u sir
Good info of c++ .. Thnq ❤
Most welcome 😊
Great video thank you!
welcome :)
Thank you sir for providing this valuable information
It's my pleasure
Excellent 👍
Many thanks
starting C++ with college.
programming is great!!!!!!!!!
HELLO WORLD
awesome :)
Learned a lot, thank you!
Thank you sir😘
my pleasure :)
🙏🙏🙏
sir ty for giving good content of c++..👍👍
pleasure :)
Awesome teaching 😍
Thank you! 🙂
Thanks a lot sir really :)
my pleasure .
keep learning :)
Thanks you saved me
Pleasure
thank you soo much for these videos
pleasure :)
superb. thanks a lot this simple and understandable video
my pleasure.
keep learning :)
Great vid
thank you :)
Great video
Thank you :)
Thank you Sir it has helped me
Glad to hear that.
keep learning :)
i love it so much , you did it very well
thank you :)
Nicely explained
thank you :)
so good is very good!
Thank you
thank you so much! This really helps...
You're welcome!
awesome content sir
Thank you so much
You're most welcome
Nice one sir, Thanks a lot.
Most welcome
Good Job
thanks
Please Dear Sir Keep it UP 🥰🥰😎😎
thank you!
Pleasure
Sir make videos for c++ graphic ...!!!
i'll try :)
@@LearningLad cout
Great explanation, Thanks a lot.
wanted to ask if there is a good explanation about dll files. :D thanks a lot sir
will try to make a video
thank you :)
@@LearningLad thanks a lot sir
the perfect video
thank you :)
Very interesting video
You have a wonderful and simple way of teaching. If some personal help is required, will you be able to provide your contact information (even if chargeable). We do come across lots of hook ups while writing new programs. You can make a web site to address all such issues for paid members. It is just not a suggestion, it is a necessity. Thanks.
Thanks bro.great job
my pleasure :)
Thnq so much for this video 🤗
my pleasure :)
Thank you
Pleasure
Awesome :)
thank you :)
Thank u sir
Welcome
Impressive
thank you :)
Tq sir
pleasure :)
Great👍
Mujhay to shook hi buhat hai!! Parhnay ka
it;s nice :-)
Thank you :)
So basically everything is available already and we just have to learn to write the C++ source code :)
we have to create our programming logic and create some functionality if needed :)
I want to start programming in mobile, so please suggest c++ compiler for Android.😄😀😀
Thankuuu
my pleasure :)
Can you please make a video explaining how to convert multiple .cpp files to a single .exe file.
Nyc explanation
But i have one doubt,
the .ii and .s and .o/.obj and .exe file where will stored and how that retrive the data
plzzz explain those .
Can you please tell me that these149 tutorials Are the complete course of c++?
Thanks ..
Welcome
In which will we do the coding - Dev c++ or in vs code?
you can use any editor / ide