Understanding C program Compilation Process

  Рет қаралды 384,773

HowTo

HowTo

Күн бұрын

Пікірлер: 208
@sahildadia590
@sahildadia590 8 жыл бұрын
Perfect and Concise explanation. Best 6 minutes ever!
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
Thank you for appreciating Welcome to the channel
@ankitaanilm6793
@ankitaanilm6793 7 жыл бұрын
Exactly explained in a way it should be explained. Thanks buddy!
@HowTomakeitdone
@HowTomakeitdone 7 жыл бұрын
thanks
@fatihakbas8529
@fatihakbas8529 7 жыл бұрын
This is very clear explanation. Thank you very much for your effort!!
@beneelohimhub
@beneelohimhub Жыл бұрын
Thank you so much, very easy to grasp and comprehensive, the diagrams makes everything looks very clear.Thank you.
@abdelmajid9331
@abdelmajid9331 Жыл бұрын
I like your way of explaining the c program compilation process, it is simple and easy. Thank you so much.
@yogeshpatil186
@yogeshpatil186 2 жыл бұрын
Thq sir u taught us in very deep
@adityabarhanpurkar8762
@adityabarhanpurkar8762 3 жыл бұрын
Best video about compilation stages...thank u
@RajVeer-hy9zf
@RajVeer-hy9zf 7 жыл бұрын
the explanation is very good n also in depth.thank u very much
@HowTomakeitdone
@HowTomakeitdone 7 жыл бұрын
Thanks
@raavi2945
@raavi2945 4 жыл бұрын
Well done MAN... hopefully I got what I was looking for...
@codeandtalk6
@codeandtalk6 Жыл бұрын
Very nice explanation
@mohamedhammoutene3413
@mohamedhammoutene3413 5 жыл бұрын
That's some good explanation right there !! GOOD JOB (y)
@HowTomakeitdone
@HowTomakeitdone 5 жыл бұрын
thank you for your kind words
@Dotto19
@Dotto19 4 жыл бұрын
Very well explained l. Thank you brother
@vakhariyajay2224
@vakhariyajay2224 3 жыл бұрын
Thank you very much. You are a genius. 👍 👍🔝🔝
@enjoy1284
@enjoy1284 6 жыл бұрын
thankyou so much...i'm so good at programming but no one cud explain me this clear idea about compilation
@HowTomakeitdone
@HowTomakeitdone 6 жыл бұрын
glad to know that it was something helpful to you for understanding compilation.
@shahzaibakhtar5421
@shahzaibakhtar5421 6 жыл бұрын
kia ap mujay programming sikhae gi please
@haseebahmad5853
@haseebahmad5853 7 ай бұрын
well explained. to point, just what needed
@urchmanernest991
@urchmanernest991 Жыл бұрын
Very concise and clear explanation... Thank you!
@temidayoakinsola4935
@temidayoakinsola4935 Жыл бұрын
Well explained! Thanks so much sir..
@nidhimavijyanti5537
@nidhimavijyanti5537 2 жыл бұрын
Thanks for your perfect explaination ☺️
@krushngor2101
@krushngor2101 5 жыл бұрын
Looks like I am ready for my final. thanks man
@nyctophilic1790
@nyctophilic1790 4 жыл бұрын
the best and short explanation ever thankss
@UlyssesAza
@UlyssesAza 6 жыл бұрын
Straight to the point video.
@prathmeshyennawar9547
@prathmeshyennawar9547 2 жыл бұрын
Thank you for your nice and clear explanation 👍 😊
@omobolajiadex7447
@omobolajiadex7447 2 жыл бұрын
This a very very clear explanation.
@hp8q
@hp8q 7 ай бұрын
Thank you for the clear explanation
@iKsA8x
@iKsA8x 3 жыл бұрын
Good explanation and clear slides. Thank you.
@quickfit-3
@quickfit-3 11 ай бұрын
thank you man very helpfull tutorial
@ibrahimokmen1217
@ibrahimokmen1217 Жыл бұрын
Clear explanation, thanks mate.
@roeetoledano6242
@roeetoledano6242 Жыл бұрын
explained amazingly! thank you.
@limitless1692
@limitless1692 5 жыл бұрын
Very simple and clean explication Thank you very much :)
@pabitrakb5291
@pabitrakb5291 11 ай бұрын
Nice explanation ❤
@boluakorede4463
@boluakorede4463 2 жыл бұрын
you’re blessed 👍🏼🔥
@nomulakumar8530
@nomulakumar8530 4 жыл бұрын
U did good job but u can do great sir
@nulledape
@nulledape 3 жыл бұрын
This video is excellent!
@soufianebouanani1997
@soufianebouanani1997 Жыл бұрын
Very well explained !
@danijelpirc2821
@danijelpirc2821 3 жыл бұрын
Thank you. Quite good video and explanation.
@solomonking7558
@solomonking7558 4 жыл бұрын
Poco a Poco good stuff we need to link up
@austinmorara7954
@austinmorara7954 Жыл бұрын
Thank you for the video.
@mayhsajju28
@mayhsajju28 7 жыл бұрын
a perfect short n precise explanation of what happens during compilation in c. kudos to you...
@HowTomakeitdone
@HowTomakeitdone 7 жыл бұрын
thanks
@Iano10x
@Iano10x 2 жыл бұрын
Straight to the point.
@jp_the_ai_guy
@jp_the_ai_guy Жыл бұрын
Thanks for your precision
@RyanMuzzey
@RyanMuzzey 2 жыл бұрын
Great explanation, thank you!
@RollinShultz
@RollinShultz Жыл бұрын
Your voice sounds a lot like Kudvenkat who I studied for years.
@Cowwy
@Cowwy 2 жыл бұрын
awesome explanation!!
@116_riyakamble9
@116_riyakamble9 2 жыл бұрын
very well explained'
@amiramiri4517
@amiramiri4517 2 жыл бұрын
Thank you!🍀
@terfatyokula1761
@terfatyokula1761 3 жыл бұрын
Nice job
@0kumo1
@0kumo1 8 жыл бұрын
Thank you, good explanation.
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
Thanks
@suvashreepriyadarshinibisw8017
@suvashreepriyadarshinibisw8017 3 жыл бұрын
Very well explained sir.
@anupamac7958
@anupamac7958 7 жыл бұрын
Very well explained.. Thank-you
@maheshparuchuri1268
@maheshparuchuri1268 3 жыл бұрын
Super brother
@stachowi
@stachowi 2 жыл бұрын
Very good video.
@madhukrishna4371
@madhukrishna4371 8 жыл бұрын
nice explanation.. have some doubts 1. can you please explain clearly what is use of assembler ? 2.In which stage memory allocation will happen for variables ?
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
In the beginning there were only machine code, later came assemble language in which word has been assigned to operation codes ( add, sub, mul). These codes known as mnemonic. Still people felt difficulties in coding, then came high level language. Now what their developer did, they just though that assembler( who convert from assemble to machine code) is already available and if we can convert our high level code into assembly we no more need to worry about conversion to machine code. So they used assembler in their compiler internally. Memory allocation is done at compile or run time both. When we declare variable, they take memory at compile time but malloc function used to allocate memory at run time.
@sajidmehmood7655
@sajidmehmood7655 5 жыл бұрын
assembler is transltor that convers assembly language into machine....that can easily undrstand by computer
@vicvic553
@vicvic553 4 жыл бұрын
Could you help me, please? I am wondering about something - we need a compiler in order to translate a source code in C to binary code understandable for a computer. However, how a compiler is written? I mean, is it in C which is, at this moment, not understandable for a computer yet? I get the "big idea" which you presented, and want to say - thank you for this. However, I still feel that something is missing for completely understanding. I have heard somewhere that some C compilers are written in C - but how is it possible? A huge please, could you explain it to me?
@JesseOrmandMusic
@JesseOrmandMusic 2 жыл бұрын
You could write a compiler for C that is written in C and then compile that with an existing compiler
@-HarishkumarG
@-HarishkumarG 4 жыл бұрын
In linker , You said it will link the code if we use the library but that was already happened in preprocessor right ?
@Reptil714
@Reptil714 3 жыл бұрын
You might use what we call pre-compiled libraries in your code. These libraries are only available as object code (thus only as binary code, you have no access to the associated code lines). The preprocessor handles libraries for which the code is explicitly readable. So pre-compiled libraries are the kind that are handled by the linker.
@Imran01123
@Imran01123 5 жыл бұрын
Zaberdast
@Health660
@Health660 9 жыл бұрын
Thanks for sharing... Very useful :) n precise
@HowTomakeitdone
@HowTomakeitdone 9 жыл бұрын
ashwini mushigeri You are welcome
@victorzedwings
@victorzedwings 7 жыл бұрын
bullshit
@ajaykumar-wy6fb
@ajaykumar-wy6fb 7 ай бұрын
I have one question What happened in linker stage if there is no libraries available?
@prashanthkumar0
@prashanthkumar0 6 жыл бұрын
well explained ... thanks
@HowTomakeitdone
@HowTomakeitdone 6 жыл бұрын
Thanks for the comment.
@tamilmaranc
@tamilmaranc 8 жыл бұрын
these all the best terminologies to learn exactly in embedded domain
@utkarshkothimbire1484
@utkarshkothimbire1484 3 жыл бұрын
Thank you, sir. Very nicely explained.
@yogaraj1524
@yogaraj1524 7 жыл бұрын
Good but video is going slowly. Make it crisp . everything is good.thank you very much sir
@svetlinivanov6437
@svetlinivanov6437 6 жыл бұрын
Great video!
@HowTomakeitdone
@HowTomakeitdone 6 жыл бұрын
thanks
@zeinadesouky2683
@zeinadesouky2683 Жыл бұрын
Thank you so much
@brandm5176
@brandm5176 3 жыл бұрын
Thanks a lot dude!
@AjithkumarSekar
@AjithkumarSekar 8 жыл бұрын
Thank you for your awesome video sir. 1)What is the need of linker when compiler replaces all the header file source code in the main program code? i.e as according to my knowledge, at the first phase of compilation itself all the other files are included and the they are converted into object file. so, the other files(source code ) will be already linked and there is no need for linker. please clarify me..
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
+Ajithkumar Sekar In first step header file will be include which don't contain actual content of library. It contains only signature of function not their definition. Linker is actual component which will link function definition with function calling statement.
@subham3613
@subham3613 5 жыл бұрын
suppose there are multiple users coding program ,E.g. one is coding how to add and another one how to subtract and so on.Each one of them will have their own code and header files that runs separately. Linker link those files together to form 1 single code with all functionalities that those code were having into a single .exe(executable) file with all header files that are required.
@navneetjoshi7858
@navneetjoshi7858 9 жыл бұрын
That was really good!
@HowTomakeitdone
@HowTomakeitdone 9 жыл бұрын
+Navneet Joshi Thanks Navneet Welcome to channel.
@sureshsingh9880
@sureshsingh9880 2 жыл бұрын
good video
@ayoubbouizou3836
@ayoubbouizou3836 5 жыл бұрын
Thank U Easy explanation easy draws thnks
@fahadkhanchughtai3279
@fahadkhanchughtai3279 4 жыл бұрын
# is not a comment. It's called the preprocessor directive. Am I right?
@winiwiw1069
@winiwiw1069 7 жыл бұрын
you are the best man
@prakharsrivastava3335
@prakharsrivastava3335 7 жыл бұрын
explained in a nice way !
@aflearningacademy
@aflearningacademy 5 жыл бұрын
thank you so much you save my time.
@manasabr7295
@manasabr7295 6 жыл бұрын
Wow very good informationp
@amanx4479
@amanx4479 3 жыл бұрын
Is it the same compilation process with c++?
@aasthashrivastava8972
@aasthashrivastava8972 Жыл бұрын
your voice😍
@chetanhabeeb5996
@chetanhabeeb5996 6 жыл бұрын
Good explanation Tq
@HowTomakeitdone
@HowTomakeitdone 6 жыл бұрын
Thanks for the comment
@Seyneor
@Seyneor 2 жыл бұрын
Appreciate it
@trojanhorse8278
@trojanhorse8278 4 жыл бұрын
I think comments are removed in lexical analysis stage which is the part of compilation and not the preprocessor.
@balancemyself
@balancemyself 2 жыл бұрын
Who does that analysis
@trojanhorse8278
@trojanhorse8278 2 жыл бұрын
@@balancemyself which analysis are u referring to?
@lyrealcurriculum
@lyrealcurriculum 11 ай бұрын
The lexical analysis you stated contrary to the preprocessor
@jalil_mo
@jalil_mo Жыл бұрын
Are you laughing while recording? Good video dude :))
@stranger-rk1up
@stranger-rk1up Ай бұрын
u gotta nice voice :)
@aatmakumar4631
@aatmakumar4631 2 жыл бұрын
Nice class
@BetelGeuseTTV
@BetelGeuseTTV 6 жыл бұрын
good explanation / content , but please try to not talk like someone is forcing you too... just some constructive criticism here... not complaining! all the best!
@HowTomakeitdone
@HowTomakeitdone 6 жыл бұрын
Such comments are always welcome. I will take care of it. Thanks for your comment.
@Pdj_n
@Pdj_n 5 жыл бұрын
nice video
@wolfteamUpdates
@wolfteamUpdates 8 жыл бұрын
So every library must contain the object file .o so that linker can link to those object file present in library. So say, if object file is not present in the library on which our program is dependent, then the linker cannot link those libraries with our code. We cannot simply ship cpp files as a library. Am i right?
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
+Mojo Jojo yes. CPP files will not work. Only object files also not sufficient. You have to create library which includes that object files.
@wolfteamUpdates
@wolfteamUpdates 8 жыл бұрын
So there should be .lib file as well as .obj . If so then can you please differentiate between what kind of code obj contains and what .lib contains and why there are 2 different things. Thanks for reply
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
+Mojo Jojo .lib file contains .obj plus code to map address like if dynamic library is used then in that library some mechanism is there which will load library into memory and include address into compiled file. I hope it makes your concept clear. In case any query feel free to ask.
@wolfteamUpdates
@wolfteamUpdates 8 жыл бұрын
Thank you. After you video and comment, things starts to make sense. (you got a sub)
@kanishfatima1654
@kanishfatima1654 7 жыл бұрын
I love your voice here ❤
@Di1eepNagendra
@Di1eepNagendra 5 жыл бұрын
Omg...😂😂😂
@arefsaran
@arefsaran 3 жыл бұрын
Thank you
@rafsanjanimuhammod309
@rafsanjanimuhammod309 9 жыл бұрын
Really nice one. Thankyou, Sir !!!
@HowTomakeitdone
@HowTomakeitdone 9 жыл бұрын
+Rafsanjani Muhammod You are welcome to channel.
@NickGhale
@NickGhale 10 ай бұрын
Thank you Saar
@javadbaig9355
@javadbaig9355 5 жыл бұрын
Why here compiler is converting .c into assembly then binary...,, Cant we can convert .c into binary directly
@keerthanam2156
@keerthanam2156 4 жыл бұрын
nice explation.. very usefull for me but pls dont take video while sleepy.. bz ur voice is so dull
@di36774
@di36774 5 жыл бұрын
wonderful.
@HowTomakeitdone
@HowTomakeitdone 5 жыл бұрын
thanks
@khajavali7880
@khajavali7880 2 жыл бұрын
super
@hermannkumbong5955
@hermannkumbong5955 8 жыл бұрын
Very nice video. but still need a video to clearify me on the issue of linking , relocating and loading
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
Thanks for appreciatoins welcome to channel.....
@malharjajoo7393
@malharjajoo7393 8 жыл бұрын
very well explained.
@victorzedwings
@victorzedwings 7 жыл бұрын
bullshit
@donleqacker931
@donleqacker931 6 жыл бұрын
Good explanation!
@sanjeetkumar3062
@sanjeetkumar3062 9 жыл бұрын
you said compiler has different modules, why did you make compiler block in compilation process? 1.02
@HowTomakeitdone
@HowTomakeitdone 9 жыл бұрын
+sanjeet kumar Compilation process actually contain these steps. Compiler is one of them. When we compile it doesn't directly convert into machine language. It does preprocessing, then conversion at last linking. So take it as Compilation process has different modules.
@sanjeetkumar3062
@sanjeetkumar3062 9 жыл бұрын
+HowTo So compiler only takes preprocessor input and convert into assembly language?
@HowTomakeitdone
@HowTomakeitdone 9 жыл бұрын
+sanjeet kumar yes it will take pre processed input and then convert it into assembly language.
@AxelWerner
@AxelWerner 8 жыл бұрын
huh ?! a C compiler generates "assembly code" and not machine code (object code) directly ?!
@HowTomakeitdone
@HowTomakeitdone 8 жыл бұрын
Compiler directly generates machine code and assembly code is generated as an intermediate step. When we use compiler all we can see is object code. Assembly code is not saved on hard disk.
@CyberSamuraii
@CyberSamuraii 7 жыл бұрын
very nice thank you
@victorzedwings
@victorzedwings 7 жыл бұрын
very bullshit
@CyberSamuraii
@CyberSamuraii 7 жыл бұрын
Victor Zed Wings ?
@victorzedwings
@victorzedwings 7 жыл бұрын
yes that's me, what? yet another bullshit tutorial
@ececse
@ececse 2 жыл бұрын
thankyou sir
@metrique_zw
@metrique_zw Жыл бұрын
im here because of Alx
Compiling, assembling, and linking
6:58
EngMicroLectures
Рет қаралды 178 М.
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
КОНЦЕРТЫ:  2 сезон | 1 выпуск | Камызяки
46:36
ТНТ Смотри еще!
Рет қаралды 3,7 МЛН
C_06 Execution Process of a C Program | C Programming Tutorials
8:55
Jenny's Lectures CS IT
Рет қаралды 638 М.
Comparing C to machine language
10:02
Ben Eater
Рет қаралды 5 МЛН
"C" Programming Language: Brian Kernighan - Computerphile
8:26
Computerphile
Рет қаралды 1,9 МЛН
The Fetch-Execute Cycle: What's Your Computer Actually Doing?
9:04
Tom Scott
Рет қаралды 1,9 МЛН
What on Earth is Recursion? - Computerphile
9:40
Computerphile
Рет қаралды 751 М.
Learning to Program in C (Part 01)
21:09
Jonathan Engelsma
Рет қаралды 927 М.
why do header files even exist?
10:53
Low Level
Рет қаралды 457 М.
Why C Programming Is Awesome
8:34
Chris Hawkes
Рет қаралды 566 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН