code optimization techniques in compiler design||principal sources of optimization
ฝัง
- เผยแพร่เมื่อ 19 เม.ย. 2019
- #codeoptimizationtechniquesincompilerdesign #codeoptimizationincompilerdesign #compilerdesign
code optimization in c
peephole optimization in compiler design
code optimization pdf
code generation in compiler design
code motion in compiler design
what is code optimization
loops in flow graph in compiler design
difference between local and global optimization in compiler design
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
sir, a simple correction in last example of strength reduction, you replaced a*2 with a+2, actually it should be replaced with a+a. anyway great video thank you soo much...
Ya what you said is correct
@@SudhakarAtchala sir, day before yesterday was my compiler exam, thanks to you it was good.
11:35 optimized code is b=a+a;
ya what you said is correct. Thanks
Yes
Your compiler design videos are extremely helpful sir! It would be highly helpful if you could make videos on Liveness analysis and constant propagation too🙏🏻
Sure I will Subhrajit Bhowmik. Plz subscribe to the channel and if possible share with your friends. Thanks
Can rely on your teaching without referring to any other notes. You made compiler design so easy to understand. Thank you so much, sir.
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
thank you so much for teaching engineering subjects very easily , sir
teachers like you are very reliable even before exam time !
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Very nice and easily understandable 👌
You have explained it soo well sir👏 Thank you very much. I hope your chanel reaches heights
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Amazing Video sir , I am subscribing you and looking forward to more videos on spcc, amazing exlaination sir
Thank you so much.
Sir your videos are wonderful. I really appreciate the efforts you put in!! Thank you so much.
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Explanation is very excellent
Understanding the topic very easy thank you for helping us
Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Excellent sir
Many many thanks
Very well teaching 🤗💙
Thanks Vyshuu. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Try making a video on Difference between Local and Global Optimization.
Definitely plz subscribe to the channel and share with your friends thank you.
Helpful
Glad it helped Sunil. Plz subscribe to the channel and if possible share with your friends. Thank you so much.
helped a lot sir tku
nice explationation sir thankus ......................
Hai Rakesh, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
In strength reduction if a=b*2 is replaced with a=b+2 dosent it change the sematics or meaning may be its just a=b+b ...I dont know .please correct me if am wrong
Ya what you said is correct
Thank you sir....
Plz subscribe to the channel and share with your friends thank you so much.
Thank you so much sir
Hai Rohini, plz go through my playlists once. Definitely you will like more videos. Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Thank u so much sir👏👏
Hai Pavani, plz go through my videos once. Definitely you will like more videos. Thanks
for your encouragement and support towards our channel. Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
The redundant subexpsn elimination and common subexpsn elimination are both same or different..
Also folding and constant folding same...and what is frequency reduction
Yes they are same. Don't know about frequency reduction.
Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@@SudhakarAtchala thank you sir
What is meant by dynamic programming code generation
thank you sir
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Thankyou so much sir ❤️
Plz subscribe to our channel. Thanks
Did not understood common sub expression,if possible say it ASAP plzz
please lock the exposure in camera .. the brightness of video flickers.
k. thanks for your advice
👍
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
Common sub expression elimination
Compile time evaluation,constant folding, constant propagation
Code movement
Dead code elimination
Strength reduction
at 11:32, instead of b=a+2, I think it is b=a+a
Ya what you said is correct
Hai Muneef
Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Sir, I think you tried to say b = a + a for strength reduction example
Ya what you said is correct
Hai
Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
B=a+a in the end
Ya what you said is correct
Hai Karthik
Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions. Thank you so much.
Kal exam paaasss
Hai Prudvi
Thanks for your encouragement and support towards our channel.Share my sessions with your friends and subscribe to our channel.Keep on following my sessions.
Any Tamil Students Here 🙋
Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
thank you so much sir
Most welcome srilakshmi. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.