Code Optimization Techniques in Compiler Design

  Рет қаралды 166,450

LearnVidFun

LearnVidFun

Күн бұрын

In this video, we will discuss about the Code Optimization Techniques in Compiler Design.
What is Code Optimization ?
---------------------------------------------
Code Optimization is a technique which tries to improve the code by eliminating unnecessary code lines and arranging the statements in such a sequence that speed up the program execution without wasting the resources.
Various Code Optimization Techniques:
---------------------------------------------------------------
1. Compile Time Evaluation
a) Constant Folding
b) Constant Propagation
2. Common sub-expression elimination
3. Code Movement
4. Dead Code Elimination
5. Strength Reduction
For details, please watch the video.
Get these handwritten notes from website here-
www.gatevidyal...
Click here to get notes-
www.gatevidyal...
Syntax Trees is an important topic for semester examination as well as competitive examinations like GATE, NET etc.
Watch the complete Compiler Design Tutorials here-
• Syntax Trees in Compil...
Follow us on-
LearnVidFun Facebook : / learnvidfun
Gate Vidyalay Facebook : / gatevidyalay
Gate Vidyalay Website : www.gatevidyal...
For any doubts/ queries, please comment below...
Please...Like, share and comment if you really gained something from this video and don't forget to subscribe yourself for getting the latest updates!
Your support really encourages us to do better....Thank you!! :)

Пікірлер: 375
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Hey Guys, Now we have launched our own website www.gatevidyalay.com Kindly visit that website and you can download the notes from there and get other study material! If you can provide any suggestions regarding the improvement of KZbin channel as well as website...we would definitely love to have them! All the best...Keep learning :)
@successpoint3633
@successpoint3633 6 жыл бұрын
Its really helpfull in our exam Thanks bro
@electrician.experimentalex6539
@electrician.experimentalex6539 5 жыл бұрын
НАПОМИНАЕТ БОРМОТАНИЕ ПЬЯНОГО ДЖИНА В БУТЫЛКЕ(;--))
@abhisheksikarwar7457
@abhisheksikarwar7457 5 жыл бұрын
right, it's so irritating 'right'
@kirtiagg5277
@kirtiagg5277 4 жыл бұрын
Suprbb handwriting ..& way of teaching is also good ..
@tavleensehra9386
@tavleensehra9386 4 жыл бұрын
great job sir
@shashishekhar1729
@shashishekhar1729 7 жыл бұрын
in the common subexpression elimination example , in the last line after optimization t4 should be replaced with t1 ,
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Yeah..right buddy!! Please make a correction....Thanks for notifying it!! All the best...Keep learning :)
@waqaskhan3497
@waqaskhan3497 5 жыл бұрын
arey bhai you made it easy just 8 hrs before exam Thanks bro
@98anirban
@98anirban 5 жыл бұрын
10:45, in common sub-expression elimination, after optimisation, t6 would be t6 = b[t1] + t5
@abdevillers8180
@abdevillers8180 4 жыл бұрын
Yes Anirban Dutta
@kartikshiva8923
@kartikshiva8923 5 жыл бұрын
fun drinking game. take a shot whenever he says 'right'..... jokes aside thanks for the video...really helpful
@kartikshiva8923
@kartikshiva8923 5 жыл бұрын
Shubhgan chor
@anjanialone4102
@anjanialone4102 6 жыл бұрын
Handwriting 😍😍
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Glad to help you dear! All the best...Keep learning :)
@nitishgupta6802
@nitishgupta6802 4 жыл бұрын
Right is the common sub expression that needs to be eliminated to make this video optimal... And Thanks for the awesome tutorial.
@danielthesantos
@danielthesantos 7 жыл бұрын
This is very hard for a uni-lingual American to understand. :( But thank you very much for posting these videos anyway, because you're helping others! I'm learning GCC's Inter-procedural Constant Propagation (IPA) right now and it's hard work, but very fun!
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hey buddy...Thanks for your concern!! I can perfectly understand the problem you must be facing....!! I will try to provide a solution soon :)
@jwalan9362
@jwalan9362 7 жыл бұрын
Jwala- thankyou sir.........your very simplified and and simple way of explaining the concepts is very very helpful...
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hey dear...It feels great to help you... Thanks for your appreciation... All the best...Keep learning :)
@imimimi
@imimimi 4 жыл бұрын
thanks man, you saved my life.
@prakashsharma7010
@prakashsharma7010 7 жыл бұрын
in common sub expression there is a error on the part after the optimization , the T4 is eliminated and used in T6 , it should be T6 = b[T1] + T5
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Yeah!! Buddy...You are right!! Please correct it :) All the best...Keep learning :)
@PC-ky3qo
@PC-ky3qo 5 жыл бұрын
Amazing explanation. Thanks a lot. There's a mistake though. Make sure that won't be repeated again. Apart from that the explanation is really awesome.
@mumthasshibil2335
@mumthasshibil2335 5 жыл бұрын
First of all ur handwriting is so good. The explanation is very good and easy to understand. Thank you so much. Xamz tommorrow:)
@kshitijpathak2729
@kshitijpathak2729 5 жыл бұрын
sir at 8:44 in the constant propagation eg: pi=3.14; r=5; area=pi*r*r and in the next line there is written that pi wil be replaced by 3.14 and r by 5 but in you have written 3.14*r*r instead of 3.14*5*5 why?
@manojitpaul3004
@manojitpaul3004 7 жыл бұрын
Right...
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hehee...I know that's a sarcastic comment! I will try to correct it :D
@sonipawan52
@sonipawan52 6 жыл бұрын
Right XD
@abhisheksikarwar7457
@abhisheksikarwar7457 5 жыл бұрын
right
@pallaviagrawal7069
@pallaviagrawal7069 4 жыл бұрын
I loved that handwriting
@rahuljangir7196
@rahuljangir7196 4 жыл бұрын
God level of teaching!!!
@fionabirudugada1215
@fionabirudugada1215 5 жыл бұрын
Ur explanation is awesome...tqs for the video
@stevei6911
@stevei6911 6 жыл бұрын
very clear explanations. Thanks for ur effort for making this gud quality info available to us.
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you! All the best...Keep learning :)
@muqadaslatif172
@muqadaslatif172 11 ай бұрын
thank you for your genuine efforts
@shishirmandal8958
@shishirmandal8958 4 жыл бұрын
You teach really well
@himanichauhan929
@himanichauhan929 7 жыл бұрын
Hey ,you are doing a great job please please continue uploading videos on compiler please 😀😀😀
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hey dear...I am glad that you are liking my content and teachings... I will definitely keep doing it as long as I am able to... Thanks for your support... All the best....Keep learning :)
@travelnlearn
@travelnlearn 4 жыл бұрын
Right sir ... Very well Explained.
@TechinvoIn
@TechinvoIn 6 жыл бұрын
you saved my semester bro
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Glad to help you buddy! All the best...Keep learning :)
@shefalisachan2622
@shefalisachan2622 5 жыл бұрын
You speak right so many times that it is irritating . It's a request if u can eliminate right word rest u are good
@adarshchourasiya4924
@adarshchourasiya4924 4 жыл бұрын
Right😅
@bhavinijain5447
@bhavinijain5447 4 жыл бұрын
Your handwriting is superb😍
@j4eg3r47
@j4eg3r47 6 жыл бұрын
Wish I had handwriting like urs can u make a vid abt it?
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Hey buddy..Thanks a lot for your appreciation! I strongly believe that everyone of us has some unique qualities and abilities hidden inside us and we just need find out those and bring them out! Truly speaking, I have done nothing to improve my handwriting! It's by God grace! You too try to identify your unique qualities hidden inside you and trust me you will rock! Still if you want a video on it...We will definitely try to bring a video on it! All the best...Keep learning :)
@maheshpasare4975
@maheshpasare4975 6 жыл бұрын
mind blowing sir jee.... thank you
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you! All the best...Keep learning :)
@RahulKumar-og6cv
@RahulKumar-og6cv 7 жыл бұрын
Thank u sr I see ur channel first video best way to teach nd I like video and subscribe
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thanks for your support... All the best...Keep learning :)
@pateldevnarayan
@pateldevnarayan 4 жыл бұрын
Very well explained.
@chrisogonas
@chrisogonas 5 жыл бұрын
Amazing presentation. Good work! Thx
@vimalmaniyar527
@vimalmaniyar527 4 жыл бұрын
Understand in easy way thanks
@ki6763
@ki6763 6 жыл бұрын
can u plz make one video on good hand writing?its an humble request .
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Hey dear...really do you want me to make a video on good hand writing?? :D
@j4eg3r47
@j4eg3r47 6 жыл бұрын
LearnVidFun yup
@harshad-musale3467
@harshad-musale3467 Жыл бұрын
Sir this is machine dependent or machine indepe techniques?
@bipinkumar9449
@bipinkumar9449 5 жыл бұрын
very easy explanation of concept , thank you...
@dhananjaykumar6397
@dhananjaykumar6397 5 жыл бұрын
Bhai handwriting to aafat h aapka
@dineshprakash8630
@dineshprakash8630 7 жыл бұрын
add more videos ur teaching technique is awesome.
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thanks a lot dear...Your appreciation is really a motivation for me!! All the best...Keep learning :)
@5minutesamcraft419
@5minutesamcraft419 11 ай бұрын
sir g writing apni sahi sy likha kry smj nh ati word kiya likhy hua hai 😐
@TECHNICALGURU-vr3zc
@TECHNICALGURU-vr3zc 5 жыл бұрын
Great explanation
@seriousrelations
@seriousrelations 7 жыл бұрын
very interesting and well explained. i liked it.
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thank you :)
@DeepakSharma-uk6mc
@DeepakSharma-uk6mc 6 жыл бұрын
Thanks buddy u save a lot of time
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you buddy...Keep learning :)
@sachinbaraiya1622
@sachinbaraiya1622 5 жыл бұрын
Thank U thank U sir Ur great your notes are awesome n thank U ...👌👌
@mdmsar8590
@mdmsar8590 7 жыл бұрын
Very awesome yur explanation, i have need of one topic that is symbol table, code generation, plz yu upload of this topic plzzz
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thanks a lot buddy for your appreciation...I will definitely try to make the videos of above topics available soon...Stay tuned! For getting the video notes please visit the blog by clicking the following link- learnvidfuncompilerdesign.blogspot.in All the best...Keep learning :)
@srikruthihimanikabonda1417
@srikruthihimanikabonda1417 7 жыл бұрын
excellent video .. thanks alot.. why dnt u make full videos only in English.. plzz
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thanks buddy for your appreciation... Actually, while recording videos, I try to take care for Hindi students as well... I am glad that you liked my videos... All the best...Keep learning :)
@shubhammahajan6696
@shubhammahajan6696 7 жыл бұрын
hand writing and explaination both good
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thanks a lot buddy :)
@BHARATKUMAR-le6eq
@BHARATKUMAR-le6eq 4 жыл бұрын
Superb bro
@rishisharma6246
@rishisharma6246 5 жыл бұрын
Your video like (Right........ Right ........ Right...........Right ....... Right....)^n :-D :-D btw the content is really healpful....
@thekkb007
@thekkb007 7 жыл бұрын
AMAZING TUTORIAL!
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thanks buddy for the appreciation.. :)
@vineshtallatalla1335
@vineshtallatalla1335 6 жыл бұрын
Tq u for clear explanation
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you...All the best...Keep learning :)
@mohammedajazquadri7869
@mohammedajazquadri7869 6 жыл бұрын
Brilliant your explanation is awesome ..
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Thanks a lot buddy! All the best...Keep learning :)
@kshitijsrivastava6148
@kshitijsrivastava6148 5 жыл бұрын
I hope ye video apko acha laga hoga..😉
@junigates
@junigates 6 жыл бұрын
great....helps me a lot...thanks
@akshaygora5979
@akshaygora5979 6 жыл бұрын
pls make a video on activation tree and activation record
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Hey dear! Will definitely cover it soon! Stay tuned...All the best...Keep learning :)
@manojbendi9401
@manojbendi9401 6 жыл бұрын
Very Clear!
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Thanks buddy...Keep learning :)
@tahsinsadia1811
@tahsinsadia1811 7 жыл бұрын
Thank you for ur tutorial. helped me alot to learn these things. Do you have any tutorial on register allocation, web or coloring graph? I need it urgently for my final but I m not able to find any suitable tutorial to learn this :(
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hey dear...Thanks for your liking and appreciation :) I will try to make available these topics too... All the best...Keep learning :)
@tahreemshad8263
@tahreemshad8263 7 жыл бұрын
you didn't mention the lecture numbers because of which it is difficult to know what to learn first.
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hey dear...You can refer the playlist!! Lectures are arranged there in the order :) All the best..Keep learning :)
@unethicalwork6520
@unethicalwork6520 3 жыл бұрын
What is the name of this pen that u r holding...pls reply...
@tanmayjha98
@tanmayjha98 5 жыл бұрын
U made it easy for me thanks bro
@pinkyindre9422
@pinkyindre9422 6 жыл бұрын
Thnku so much sir for these vedio
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you... All the best...Keep learning :)
@edsharen1709
@edsharen1709 6 жыл бұрын
Good handwriting Haa keep it up
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Thanks a lot buddy! We will keep putting our efforts to provide you the best content! All the best...Keep learning :)
@nikhileshteja2134
@nikhileshteja2134 5 жыл бұрын
Hey bro ! small suggestion, don't say every time 'RIGHT' word . thank you anyways nice one helped me :)
@dhroovkanwar8612
@dhroovkanwar8612 5 жыл бұрын
Good teaching skills
@ishalrajpoot1966
@ishalrajpoot1966 3 жыл бұрын
Is it compiler based optimization register?
@prakashjutoor2684
@prakashjutoor2684 6 жыл бұрын
Good and clear....
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Thank you..Keep learning :)
@abdulelah.6999
@abdulelah.6999 5 ай бұрын
What is the most important code optimization techniques from these techniques ? Eliminating common expressions , Copy propagation , Dead-code elimination, Code Motion , Constant folding
@arpanmukherjee4625
@arpanmukherjee4625 4 жыл бұрын
while(1) { right?; }
@nirwalsingh8626
@nirwalsingh8626 2 жыл бұрын
Gud knowledge
@priyanshudwivedi28
@priyanshudwivedi28 5 жыл бұрын
Loop optimization par bhi video banaye...Xp explanation.jai hind
@MahadiHasan-lp3xz
@MahadiHasan-lp3xz 6 жыл бұрын
Nice explanation
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you buddy :) You can download the video notes from our website www.gatevidyalay.com ! All the best...Keep learning :)
@vikasvicky127
@vikasvicky127 5 жыл бұрын
Thanks for good explanation
@dollartracker
@dollartracker 7 жыл бұрын
thank u sir……thank u so much.
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Happy to help you buddy.... Keep learning :)
@patelkunjan2761
@patelkunjan2761 4 жыл бұрын
Thanks bro 🔥🔥🔥👍👍👍
@sakshichoudhary9808
@sakshichoudhary9808 6 жыл бұрын
really helpful...... thanks...
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you dear :) Stay tuned for more content! All the best...Keep learning :)
@syedmoiezbukhari2972
@syedmoiezbukhari2972 4 жыл бұрын
Right, your video is so right
@chandrimabose8326
@chandrimabose8326 5 жыл бұрын
Are copy propagation and constant propagation same?
@gopiKrishna-ri6xs
@gopiKrishna-ri6xs 7 жыл бұрын
thank you so much Sir
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Happy to help you dear...Keep learning :)
@MohammedJavid-jz8vi
@MohammedJavid-jz8vi 5 жыл бұрын
Super👍
@preetikant1874
@preetikant1874 7 жыл бұрын
nice sir
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Thank you so much dear... All the best...Keep learning :)
@yashwantb13
@yashwantb13 6 жыл бұрын
Thank u brother!!
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you dear.... :) All the best...Keep learning :)
@anantk0334
@anantk0334 5 жыл бұрын
Really your r very good
@simrankourb1759
@simrankourb1759 5 жыл бұрын
Thank you u did very well 😊
@rupalisharma6351
@rupalisharma6351 6 жыл бұрын
simple and awesome
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Thanks dear for the appreciation! All the best...Keep learning :)
@aneesmohammed4351
@aneesmohammed4351 3 жыл бұрын
Thanks 👍
@manindermanish3843
@manindermanish3843 6 жыл бұрын
at 9.39 in after optimization i think there needs to b t6= b[t1]+t5
@manindermanish3843
@manindermanish3843 6 жыл бұрын
its aleady pointed by someone :D
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Yeah! May be dear...Please look into this! If doubt still exist...do let me know! I will sort it out!! All the best...Keep learning :)
@_tan2112
@_tan2112 5 жыл бұрын
a very big thanks sir
@testknowledge1292
@testknowledge1292 2 жыл бұрын
Thank you
@Originalimoc
@Originalimoc 4 жыл бұрын
Are you using two languages in one video?
@jkssiyak3844
@jkssiyak3844 4 жыл бұрын
Yah, english and Hindi Mix use of both languages is most common in the india
@sathyamuralikumar1487
@sathyamuralikumar1487 7 жыл бұрын
tell me the induction variable elimination in compiler design
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hey buddy...Induction variable is the variable that gets incremented or decremented by fixed amount with every iteration of a loop. Consider the following example which contains the induction variables j and k. void main ( ) { int a[10], b[10]; int i, j, k; for (i=0,j=0,k=0 ; i
@seriousrelations
@seriousrelations 7 жыл бұрын
Can you please guide me a bit in detail about parsing?
@LearnVidFun
@LearnVidFun 7 жыл бұрын
Hey buddy...I will soon make available a video on it! Keep learning :)
@36_bhageshkadam72
@36_bhageshkadam72 4 жыл бұрын
Thanxx so much
@kulrajkaul3910
@kulrajkaul3910 5 жыл бұрын
thankyou bhaiya.
@KamalSharma-zw3fl
@KamalSharma-zw3fl 4 жыл бұрын
Thanks bhai
@jayshah4456
@jayshah4456 5 жыл бұрын
You are awesome buddy please make video on data mining and data warehouse before 1-dec-2018.
@prudhviraj757
@prudhviraj757 6 жыл бұрын
Bro Where is Copy Propagation in Code Optimization?
@LearnVidFun
@LearnVidFun 6 жыл бұрын
You can Google it! If any doubt pertains, we would love to assist you :) All the best...Keep learning :)
@roymathew7470
@roymathew7470 6 жыл бұрын
super class
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Thanks a lot dear for your appreciation :) We will keep providing you such content...Stay tuned! All the best...Keep learning :)
@vivekrai4811
@vivekrai4811 5 жыл бұрын
Thanks
@pavanvemuri6352
@pavanvemuri6352 5 жыл бұрын
10:37 isn't its supposed to be T6 = b[T1] + T5 in after optimization..... you haven't declared T4 at all to use it :/
@mysmallcap
@mysmallcap 5 жыл бұрын
धन्यवाद
@johnbhaiya5363
@johnbhaiya5363 6 жыл бұрын
Thanks sir......
@LearnVidFun
@LearnVidFun 6 жыл бұрын
Happy to help you dear.... :) All the best...Keep learning :)
@narayanamjairamdesik9007
@narayanamjairamdesik9007 3 жыл бұрын
Awesome
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 804 М.
这三姐弟太会藏了!#小丑#天使#路飞#家庭#搞笑
00:24
家庭搞笑日记
Рет қаралды 121 МЛН
Фейковый воришка 😂
00:51
КАРЕНА МАКАРЕНА
Рет қаралды 6 МЛН
15   2   15 02 Constant Propagation 21m11s
21:11
jasonofthel33t
Рет қаралды 2,3 М.
How I Beat The Password Game
39:53
Bog
Рет қаралды 36 М.
But, what is Virtual Memory?
20:11
Tech With Nikola
Рет қаралды 270 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 846 М.
Compiler Design: DAG Representation of Basic Blocks
14:17
Anita R
Рет қаралды 175 М.
Optimization of Basic Blocks in compiler Design
10:07
Sudhakar Atchala
Рет қаралды 77 М.