code optimization techniques in compiler design||principal sources of optimization

  Рет қаралды 130,952

Sudhakar Atchala

Sudhakar Atchala

5 жыл бұрын

#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

Пікірлер: 71
@study3783
@study3783 5 жыл бұрын
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...
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Ya what you said is correct
@study3783
@study3783 5 жыл бұрын
@@SudhakarAtchala sir, day before yesterday was my compiler exam, thanks to you it was good.
@shreyajash4921
@shreyajash4921 Жыл бұрын
Can rely on your teaching without referring to any other notes. You made compiler design so easy to understand. Thank you so much, sir.
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@learningcraftsandgames9816
@learningcraftsandgames9816 4 жыл бұрын
Very nice and easily understandable 👌
@subhrajitbhowmik1913
@subhrajitbhowmik1913 3 жыл бұрын
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🙏🏻
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Sure I will Subhrajit Bhowmik. Plz subscribe to the channel and if possible share with your friends. Thanks
@anishshrestha71
@anishshrestha71 4 жыл бұрын
11:35 optimized code is b=a+a;
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
ya what you said is correct. Thanks
@shraddharoy9662
@shraddharoy9662 3 жыл бұрын
Yes
@sanjana8267
@sanjana8267 Жыл бұрын
Sir your videos are wonderful. I really appreciate the efforts you put in!! Thank you so much.
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@217-sritejrajulu6
@217-sritejrajulu6 5 жыл бұрын
Amazing Video sir , I am subscribing you and looking forward to more videos on spcc, amazing exlaination sir
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Thank you so much.
@kavyachoragudi885
@kavyachoragudi885 3 жыл бұрын
You have explained it soo well sir👏 Thank you very much. I hope your chanel reaches heights
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@technologyoverload3262
@technologyoverload3262 2 ай бұрын
thank you so much for teaching engineering subjects very easily , sir teachers like you are very reliable even before exam time !
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@reesuhemalatha5882
@reesuhemalatha5882 8 ай бұрын
Explanation is very excellent Understanding the topic very easy thank you for helping us
@SudhakarAtchala
@SudhakarAtchala 8 ай бұрын
Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@subashreddy3207
@subashreddy3207 3 жыл бұрын
helped a lot sir tku
@user-hj8zf1nb6j
@user-hj8zf1nb6j 11 күн бұрын
Thank you very much sir 🙏
@SudhakarAtchala
@SudhakarAtchala 11 күн бұрын
Welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@Rakeshkumar-iz1mg
@Rakeshkumar-iz1mg 4 жыл бұрын
nice explationation sir thankus ......................
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
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.
@pavanibandi3245
@pavanibandi3245 4 жыл бұрын
Thank u so much sir👏👏
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
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.
@nessy3543
@nessy3543 4 жыл бұрын
Thank you so much sir
@SudhakarAtchala
@SudhakarAtchala 4 жыл бұрын
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.
@iamnighthowlers
@iamnighthowlers 5 жыл бұрын
Thank you sir....
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Plz subscribe to the channel and share with your friends thank you so much.
@sarahstoriesss
@sarahstoriesss 3 жыл бұрын
Very well teaching 🤗💙
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Thanks Vyshuu. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
@arathyasARK
@arathyasARK 5 жыл бұрын
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
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Ya what you said is correct
@gogulakirankumar4700
@gogulakirankumar4700 3 жыл бұрын
Excellent sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Many many thanks
@AshokKumar-ev6hl
@AshokKumar-ev6hl 5 жыл бұрын
Try making a video on Difference between Local and Global Optimization.
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Definitely plz subscribe to the channel and share with your friends thank you.
@vemarapunavya1736
@vemarapunavya1736 3 жыл бұрын
The redundant subexpsn elimination and common subexpsn elimination are both same or different.. Also folding and constant folding same...and what is frequency reduction
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
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.
@vemarapunavya1736
@vemarapunavya1736 3 жыл бұрын
@@SudhakarAtchala thank you sir
@chaitanyasharmavlogs6135
@chaitanyasharmavlogs6135 3 жыл бұрын
Helpful
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Glad it helped Sunil. Plz subscribe to the channel and if possible share with your friends. Thank you so much.
@vaishnavivaishnavi4627
@vaishnavivaishnavi4627 3 жыл бұрын
Did not understood common sub expression,if possible say it ASAP plzz
@siddhantdash4955
@siddhantdash4955 3 жыл бұрын
please lock the exposure in camera .. the brightness of video flickers.
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
k. thanks for your advice
@snehithacreations5738
@snehithacreations5738 Жыл бұрын
What is meant by dynamic programming code generation
@noufalthegamer
@noufalthegamer 3 жыл бұрын
Thankyou so much sir ❤️
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Plz subscribe to our channel. Thanks
@praneethreddy33
@praneethreddy33 7 ай бұрын
thank you sir
@SudhakarAtchala
@SudhakarAtchala 7 ай бұрын
Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@meghasahu4058
@meghasahu4058 Жыл бұрын
👍
@SudhakarAtchala
@SudhakarAtchala Жыл бұрын
Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@muneefmuhammed8340
@muneefmuhammed8340 5 жыл бұрын
at 11:32, instead of b=a+2, I think it is b=a+a
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Ya what you said is correct
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
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.
@valentinorossi3989
@valentinorossi3989 5 ай бұрын
Common sub expression elimination Compile time evaluation,constant folding, constant propagation Code movement Dead code elimination Strength reduction
@thefirstme
@thefirstme 5 жыл бұрын
Sir, I think you tried to say b = a + a for strength reduction example
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Ya what you said is correct
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
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.
@bosskababy
@bosskababy 5 жыл бұрын
B=a+a in the end
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
Ya what you said is correct
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
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.
@venkatvenkatesh2323
@venkatvenkatesh2323 2 ай бұрын
Any Tamil Students Here 🙋
@SudhakarAtchala
@SudhakarAtchala 2 ай бұрын
Plz subscribe to the channel and if possible share with your friends. Thanks in advance..
@prudvi01
@prudvi01 5 жыл бұрын
Kal exam paaasss
@SudhakarAtchala
@SudhakarAtchala 5 жыл бұрын
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.
@selfreflection30
@selfreflection30 3 жыл бұрын
thank you so much sir
@SudhakarAtchala
@SudhakarAtchala 3 жыл бұрын
Most welcome srilakshmi. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.
Peephole optimization in compiler design
8:32
Sudhakar Atchala
Рет қаралды 105 М.
basic blocks and flow graphs in compiler design
17:54
Sudhakar Atchala
Рет қаралды 127 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 77 МЛН
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 14 МЛН
Compiler Design: Principal Sources of Optimization
11:22
Anita R
Рет қаралды 114 М.
PRINCIPLE SOURCES OF CODE OPTIMIZATION  || COMPILER DESIGN
18:00
t v nagaraju Technical
Рет қаралды 7 М.
Optimization of Basic Blocks in compiler Design
10:07
Sudhakar Atchala
Рет қаралды 71 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 77 МЛН