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?
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 ?
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.
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.
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..
+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.
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.
Perfect and Concise explanation. Best 6 minutes ever!
Thank you for appreciating
Welcome to the channel
Exactly explained in a way it should be explained. Thanks buddy!
thanks
This is very clear explanation. Thank you very much for your effort!!
Best video about compilation stages...thank u
Very well explained l. Thank you brother
Thank you so much, very easy to grasp and comprehensive, the diagrams makes everything looks very clear.Thank you.
Thq sir u taught us in very deep
I like your way of explaining the c program compilation process, it is simple and easy. Thank you so much.
the explanation is very good n also in depth.thank u very much
Thanks
Very nice explanation
Well done MAN... hopefully I got what I was looking for...
Well explained! Thanks so much sir..
well explained. to point, just what needed
the best and short explanation ever thankss
Very concise and clear explanation... Thank you!
Thanks for your perfect explaination ☺️
Thank you very much. You are a genius. 👍 👍🔝🔝
Straight to the point video.
Thank you for the clear explanation
Nice explanation ❤
Thank you for your nice and clear explanation 👍 😊
Good explanation and clear slides.
Thank you.
Looks like I am ready for my final. thanks man
This a very very clear explanation.
thank you man very helpfull tutorial
Thank you for the video.
explained amazingly! thank you.
very well explained'
That's some good explanation right there !! GOOD JOB (y)
thank you for your kind words
Clear explanation, thanks mate.
U did good job but u can do great sir
Very well explained !
Very good video.
This video is excellent!
Great explanation, thank you!
Thank you. Quite good video and explanation.
Very simple and clean explication
Thank you very much :)
Poco a Poco good stuff we need to link up
Nice job
Very well explained sir.
Very well explained.. Thank-you
thankyou so much...i'm so good at programming but no one cud explain me this clear idea about compilation
glad to know that it was something helpful to you for understanding compilation.
kia ap mujay programming sikhae gi please
Super brother
Thanks for your precision
you’re blessed 👍🏼🔥
awesome explanation!!
Straight to the point.
Thank you, good explanation.
Thanks
Zaberdast
Thank you!🍀
Thank U Easy explanation easy draws thnks
Your voice sounds a lot like Kudvenkat who I studied for years.
Thank you, sir. Very nicely explained.
good video
well explained ... thanks
Thanks for the comment.
Wow very good informationp
thank you so much you save my time.
Nice class
Thanks a lot dude!
your voice😍
a perfect short n precise explanation of what happens during compilation in c. kudos to you...
thanks
you are the best man
explained in a nice way !
Good explanation
Tq
Thanks for the comment
Thank you so much
Great video!
thanks
That was really good!
+Navneet Joshi Thanks Navneet
Welcome to channel.
these all the best terminologies to learn exactly in embedded domain
nice video
Thanks for sharing... Very useful :) n precise
ashwini mushigeri You are welcome
bullshit
Appreciate it
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?
You could write a compiler for C that is written in C and then compile that with an existing compiler
Are you laughing while recording?
Good video dude :))
Good but video is going slowly.
Make it crisp . everything is good.thank you very much sir
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 ?
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.
assembler is transltor that convers assembly language into machine....that can easily undrstand by computer
Good explanation!
super
Thank you Saar
Really nice one.
Thankyou, Sir !!!
+Rafsanjani Muhammod You are welcome to channel.
thankyou sir
Thank you
thanks! useful video
I love your voice here ❤
Omg...😂😂😂
very well explained.
bullshit
In linker , You said it will link the code if we use the library but that was already happened in preprocessor right ?
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.
nice vdo.
+Shivangi Gupta You are welcome to channel.
nice explation.. very usefull for me but pls dont take video while sleepy.. bz ur voice is so dull
wonderful.
thanks
Good man
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..
+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.
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.
I have one question
What happened in linker stage if there is no libraries available?
Well done!
thank you too
Very nice video. but still need a video to clearify me on the issue of linking , relocating and loading
Thanks for appreciatoins
welcome to channel.....
Is it the same compilation process with c++?
nice sir
Thanx for appreciating
nice
im here because of Alx
very nice thank you
very bullshit
Victor Zed Wings ?
yes that's me, what?
yet another bullshit tutorial
Well done :)
+tHaTbASS You are welcome to Channel.