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/...

Комментарии • 223

  • @abdulhalimabdullahi9907
    @abdulhalimabdullahi9907 5 лет назад +75

    This is the best series for learning c++, THANK YOU VERY MUCH SIR👍

  • @sheikhiqbalkabir8970
    @sheikhiqbalkabir8970 4 года назад +41

    This is the best C++ video tutorial series available on RUclips. Keep up the good work. Make learning better and easier.

    • @LearningLad
      @LearningLad  4 года назад +2

      Thanks a lot!

    • @footballCartoon91
      @footballCartoon91 3 года назад +2

      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?

    • @awaneeshsingh2138
      @awaneeshsingh2138 3 года назад

      I loved it too ❤️❤️😍

    • @awaneeshsingh2138
      @awaneeshsingh2138 3 года назад

      @@footballCartoon91 assembly language is not binary, as I know

    • @khandyanamanindra
      @khandyanamanindra Год назад +1

      @@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.

  • @srivasuki3006
    @srivasuki3006 Год назад +2

    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

  • @alekhphadnis8849
    @alekhphadnis8849 4 года назад +6

    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.

  • @RamaPranav
    @RamaPranav 5 лет назад +11

    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

  • @musicprotocol4423
    @musicprotocol4423 3 года назад +1

    Thanks man. The best c++ tutorial channel I have ever seen.

  • @shobansangieth2394
    @shobansangieth2394 5 лет назад +8

    it gives a good learning of c++ for beginners ..... thanks for giving us the wonderful video..

    • @LearningLad
      @LearningLad  5 лет назад +1

      My pleasure
      Keep Learning ☺️

  • @meisamadibifard5525
    @meisamadibifard5525 2 года назад +3

    Nice and neat articulation of how compilers work! Thank you!

  • @rga8895
    @rga8895 Год назад +1

    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

  • @chc3565
    @chc3565 3 года назад +2

    I have looked for video like this for so long. Thanks for great explanation !! That helped me a lot !!

  • @MhmdK0030
    @MhmdK0030 4 года назад +3

    Very nice way to teach C++, thanks for this excellent series 👌💐

  • @kamleshambaliya3072
    @kamleshambaliya3072 4 года назад +1

    Your channel is best compare to other channels teaching C++ language as I can understand the terms you taught. THANK YOU.

    • @LearningLad
      @LearningLad  4 года назад

      Thank you.
      glad that my tutorials were helpful to you :)

  • @pramodkumarkar8153
    @pramodkumarkar8153 4 года назад +12

    love your hard work, it's worth to me :)

  • @karansiriya7796
    @karansiriya7796 5 лет назад +5

    God level teaching bro/sir... Hats off !!

  • @jamesjassi37
    @jamesjassi37 5 лет назад +16

    After two months I'm going to appear in campus placement.. Hope this playlist will help me..

  • @praseedsai3681
    @praseedsai3681 2 года назад +1

    best c++ explanation in youtube

  • @kowsicanair3125
    @kowsicanair3125 5 лет назад +3

    The most excellent teaching video I had ever seen..😊😊
    Good job man..👍

  • @gowreesham2546
    @gowreesham2546 5 лет назад +2

    you are more useful to get the cpp knowledge,thanks a lot

    • @LearningLad
      @LearningLad  5 лет назад

      My pleasure
      Keep learning ☺️

  • @nagame859
    @nagame859 3 года назад +1

    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).

  • @nickknight5373
    @nickknight5373 3 года назад +2

    Very clear and well-organised presentation - thank you!

  • @fabiosantos5392
    @fabiosantos5392 3 года назад +2

    Thanks , the best course !!!

  • @rajatsahu9313
    @rajatsahu9313 3 года назад +1

    Your teaching is very helpful to us . These are very good quality videos available. Thank you so much sir .

  • @thegabefactor
    @thegabefactor 6 месяцев назад +1

    Amazingly explained!

  • @sravanthipatil925
    @sravanthipatil925 3 года назад +1

    Super sir it is very keen upto point in short thanku so much sir

  • @MithatKonar
    @MithatKonar 4 года назад +1

    Excellent explanation!

  • @alpt1980
    @alpt1980 3 года назад +1

    wow i have seen many videos, i have read many books. But this is far beyond of all. Good job, thanks

  • @ranjeetkaur7829
    @ranjeetkaur7829 3 года назад +1

    I think it's the best series for learning c++ very easily and in a fast manner😇😇😇

  • @RazorIance
    @RazorIance 5 лет назад +27

    who knew the indian accent could be used as asmr

  • @teddylovespeanuts
    @teddylovespeanuts Год назад +1

    what a great breakdown! tysm 🙏

  • @adarshyadav8802
    @adarshyadav8802 5 лет назад +4

    I just started your series
    Your explanation is awesome
    But it will be more awesome if you'll and some graphics..👍

  • @thirumalpriyan3528
    @thirumalpriyan3528 4 года назад +1

    Thank you very much sir😊😊😊👍👍

  • @alexschmidt4427
    @alexschmidt4427 5 лет назад +8

    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 :)

    • @LearningLad
      @LearningLad  5 лет назад +4

      i'm planning to remake this video series.
      So all these topics will be created again with more contents / concepts.

    • @alexschmidt4427
      @alexschmidt4427 5 лет назад +1

      @@LearningLad This will be great, I am glad to hear that

    • @vikasbalani4310
      @vikasbalani4310 5 лет назад

      @@LearningLad please provide link to the new series if you make one.! Thank you :)

  • @jemy_tube
    @jemy_tube 5 лет назад +3

    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

  • @tembelaniterawewe7996
    @tembelaniterawewe7996 Год назад +1

    Thank you so much a simple and informative information.💌

  • @sathvikreddythumma5484
    @sathvikreddythumma5484 Год назад +1

    Sir I think you are in top 1% in the world....

  • @OmSaiRam32145
    @OmSaiRam32145 2 года назад +1

    Very nice explanation......Thank you so much..

  • @FAISALSHAHZAD-pl5rk
    @FAISALSHAHZAD-pl5rk 4 года назад +2

    great series to learn things from scratch

  • @jaredcrown5812
    @jaredcrown5812 3 года назад +1

    One of the best explanation and series. Thank you

  • @kareemelbeih362
    @kareemelbeih362 4 года назад +1

    very nice easy way to explain the process! Good Job

  • @shlokrana703
    @shlokrana703 5 лет назад +3

    sir u are the best

  • @master_f
    @master_f 5 лет назад +3

    Very good overview. Great video!

  • @aditya.ishan27
    @aditya.ishan27 5 лет назад +15

    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.

    • @LearningLad
      @LearningLad  5 лет назад +1

      thank you.
      i'll try to make that video :)

  • @rajcse_27
    @rajcse_27 2 года назад +1

    Thank you so much sir its really helpful.
    great explanation.

  • @repairstudio4940
    @repairstudio4940 Год назад +1

    Thank you very informative! Liked and Subbed! 🎉

    • @LearningLad
      @LearningLad  Год назад +1

      Awesome, thank you!

    • @repairstudio4940
      @repairstudio4940 Год назад

      @@LearningLad always looking forward to more! I would love to learn Assembly code. :)

  • @vashishtdubey8034
    @vashishtdubey8034 3 года назад +2

    👍👍 TOO GOOD SIR

  • @Codechamp69
    @Codechamp69 Год назад +1

    Thank you very much, you are amazing man!

  • @abexoxo
    @abexoxo 11 месяцев назад

    very clear and visually easy-to-follow video! thank you! Would be further appreciated if you also include the explanation of assembler.

  • @ЙоаннаГичева
    @ЙоаннаГичева 3 года назад +1

    Thank you so much for the clear explanations!

  • @iamkrishn
    @iamkrishn 3 года назад +1

    Understood. Liked. Subscribed.

  • @kavyabanka4482
    @kavyabanka4482 5 лет назад +1

    I m very thankful to u sir

  • @viratyadav7732
    @viratyadav7732 2 года назад +1

    Good info of c++ .. Thnq ❤

  • @godkingeroz7335
    @godkingeroz7335 Год назад +1

    Great video thank you!

  • @imamhussainshaik5933
    @imamhussainshaik5933 4 года назад +1

    Thank you sir for providing this valuable information

  • @jeenap.r6648
    @jeenap.r6648 2 года назад +1

    Excellent 👍

  • @akshatparwani4961
    @akshatparwani4961 4 года назад +1

    starting C++ with college.
    programming is great!!!!!!!!!
    HELLO WORLD

  • @calvin_713
    @calvin_713 2 года назад

    Learned a lot, thank you!

  • @mr.shoaibmalik2488
    @mr.shoaibmalik2488 4 года назад +2

    Thank you sir😘

  • @KumarAcademy
    @KumarAcademy 4 года назад +9

    🙏🙏🙏

  • @aditi_varsnedits2127
    @aditi_varsnedits2127 5 лет назад +1

    sir ty for giving good content of c++..👍👍

  • @kunaal28
    @kunaal28 4 года назад +1

    Awesome teaching 😍

  • @humblestudent218
    @humblestudent218 5 лет назад +5

    Thanks a lot sir really :)

  • @kanekiyeager6180
    @kanekiyeager6180 3 года назад +1

    Thanks you saved me

  • @chinmayeegouda151
    @chinmayeegouda151 5 лет назад +2

    thank you soo much for these videos

  • @afraimuangnory7195
    @afraimuangnory7195 5 лет назад +1

    superb. thanks a lot this simple and understandable video

  • @russyallop3957
    @russyallop3957 5 лет назад +2

    Great vid

  • @unwaveringmotivation.
    @unwaveringmotivation. 3 года назад +1

    Great video

  • @abulhussain9693
    @abulhussain9693 4 года назад +2

    Thank you Sir it has helped me

    • @LearningLad
      @LearningLad  4 года назад

      Glad to hear that.
      keep learning :)

  • @tinashegotora6400
    @tinashegotora6400 4 года назад +1

    i love it so much , you did it very well

  • @stuff6585
    @stuff6585 5 лет назад +2

    Nicely explained

  • @Kim-cj2ds
    @Kim-cj2ds 10 месяцев назад +1

    so good is very good!

  • @aiyyovidya
    @aiyyovidya 4 года назад +1

    thank you so much! This really helps...

  • @sriramspartz1576
    @sriramspartz1576 2 года назад

    awesome content sir

  • @FactSD15
    @FactSD15 4 года назад +1

    Thank you so much

  • @hvvijuka
    @hvvijuka 4 года назад

    Nice one sir, Thanks a lot.

  • @medbechirtorky9014
    @medbechirtorky9014 2 года назад +1

    Good Job

  • @BILLIONAIRE-lz9zh
    @BILLIONAIRE-lz9zh Год назад +1

    Please Dear Sir Keep it UP 🥰🥰😎😎

  • @arifrahman-sc9zs
    @arifrahman-sc9zs 3 года назад +1

    thank you!

  • @bikitirua5935
    @bikitirua5935 5 лет назад +5

    Sir make videos for c++ graphic ...!!!

  • @sanacher101
    @sanacher101 3 года назад +2

    Great explanation, Thanks a lot.
    wanted to ask if there is a good explanation about dll files. :D thanks a lot sir

    • @LearningLad
      @LearningLad  3 года назад +1

      will try to make a video
      thank you :)

    • @sanacher101
      @sanacher101 3 года назад

      @@LearningLad thanks a lot sir

  • @satrughanyadav2619
    @satrughanyadav2619 4 года назад +1

    the perfect video

  • @abrahamthieu1719
    @abrahamthieu1719 3 года назад

    Very interesting video

  • @kishorsahni7478
    @kishorsahni7478 3 года назад +1

    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.

  • @picassoofai4061
    @picassoofai4061 4 года назад +1

    Thanks bro.great job

  • @pallavishamkuwar6084
    @pallavishamkuwar6084 4 года назад +1

    Thnq so much for this video 🤗

  • @kingsleyokoli3986
    @kingsleyokoli3986 3 года назад +1

    Thank you

  • @neerajk1244
    @neerajk1244 5 лет назад +2

    Awesome :)

  • @madhul2496
    @madhul2496 3 года назад +1

    Thank u sir

  • @shrrad8609
    @shrrad8609 5 лет назад +2

    Impressive

  • @arivomislam4677
    @arivomislam4677 5 лет назад +2

    Tq sir

  • @vrushtiprajapati1229
    @vrushtiprajapati1229 4 года назад

    Great👍

  • @nyallll
    @nyallll 3 года назад

    Mujhay to shook hi buhat hai!! Parhnay ka

  • @rsstudiestech9681
    @rsstudiestech9681 4 года назад +1

    it;s nice :-)

  • @karan_2120
    @karan_2120 4 года назад +3

    So basically everything is available already and we just have to learn to write the C++ source code :)

    • @LearningLad
      @LearningLad  4 года назад +2

      we have to create our programming logic and create some functionality if needed :)

  • @yashpatidar.8506
    @yashpatidar.8506 5 лет назад +5

    I want to start programming in mobile, so please suggest c++ compiler for Android.😄😀😀

  • @gokulvijay9938
    @gokulvijay9938 4 года назад +1

    Thankuuu

  • @mehulpraveen3278
    @mehulpraveen3278 2 года назад +1

    Can you please make a video explaining how to convert multiple .cpp files to a single .exe file.

  • @CSEDINESHKUMARK
    @CSEDINESHKUMARK 2 года назад

    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 .

  • @hariskhan8997
    @hariskhan8997 5 лет назад +1

    Can you please tell me that these149 tutorials Are the complete course of c++?

  • @aliiraq9655
    @aliiraq9655 3 года назад

    Thanks ..

  • @rsstudiestech9681
    @rsstudiestech9681 4 года назад +1

    In which will we do the coding - Dev c++ or in vs code?

    • @LearningLad
      @LearningLad  4 года назад

      you can use any editor / ide