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

ความคิดเห็น • 69

  • @study3783
    @study3783 5 ปีที่แล้ว +29

    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 ปีที่แล้ว +13

      Ya what you said is correct

    • @study3783
      @study3783 5 ปีที่แล้ว +5

      @@SudhakarAtchala sir, day before yesterday was my compiler exam, thanks to you it was good.

  • @anishshrestha71
    @anishshrestha71 4 ปีที่แล้ว +24

    11:35 optimized code is b=a+a;

  • @subhrajitbhowmik1913
    @subhrajitbhowmik1913 3 ปีที่แล้ว +11

    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 ปีที่แล้ว +3

      Sure I will Subhrajit Bhowmik. Plz subscribe to the channel and if possible share with your friends. Thanks

  • @shreyajash4921
    @shreyajash4921 ปีที่แล้ว +2

    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  ปีที่แล้ว +1

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @technologyoverload3262
    @technologyoverload3262 หลายเดือนก่อน

    thank you so much for teaching engineering subjects very easily , sir
    teachers like you are very reliable even before exam time !

    • @SudhakarAtchala
      @SudhakarAtchala  หลายเดือนก่อน

      All the best. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @learningcraftsandgames9816
    @learningcraftsandgames9816 4 ปีที่แล้ว +1

    Very nice and easily understandable 👌

  • @kavyachoragudi885
    @kavyachoragudi885 2 ปีที่แล้ว +4

    You have explained it soo well sir👏 Thank you very much. I hope your chanel reaches heights

    • @SudhakarAtchala
      @SudhakarAtchala  2 ปีที่แล้ว

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @217-sritejrajulu6
    @217-sritejrajulu6 5 ปีที่แล้ว +3

    Amazing Video sir , I am subscribing you and looking forward to more videos on spcc, amazing exlaination sir

  • @sanjana8267
    @sanjana8267 ปีที่แล้ว

    Sir your videos are wonderful. I really appreciate the efforts you put in!! Thank you so much.

    • @SudhakarAtchala
      @SudhakarAtchala  ปีที่แล้ว +2

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @reesuhemalatha5882
    @reesuhemalatha5882 7 หลายเดือนก่อน

    Explanation is very excellent
    Understanding the topic very easy thank you for helping us

    • @SudhakarAtchala
      @SudhakarAtchala  7 หลายเดือนก่อน

      Glad to hear that. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @gogulakirankumar4700
    @gogulakirankumar4700 3 ปีที่แล้ว

    Excellent sir

  • @sarahstoriesss
    @sarahstoriesss 2 ปีที่แล้ว

    Very well teaching 🤗💙

    • @SudhakarAtchala
      @SudhakarAtchala  2 ปีที่แล้ว +1

      Thanks Vyshuu. Plz subscribe to the channel and if possible share with your friends. Thanks in advance.

  • @AshokKumar-ev6hl
    @AshokKumar-ev6hl 5 ปีที่แล้ว +2

    Try making a video on Difference between Local and Global Optimization.

    • @SudhakarAtchala
      @SudhakarAtchala  5 ปีที่แล้ว +1

      Definitely plz subscribe to the channel and share with your friends thank you.

  • @chaitanyasharmavlogs6135
    @chaitanyasharmavlogs6135 3 ปีที่แล้ว

    Helpful

    • @SudhakarAtchala
      @SudhakarAtchala  3 ปีที่แล้ว +1

      Glad it helped Sunil. Plz subscribe to the channel and if possible share with your friends. Thank you so much.

  • @subashreddy3207
    @subashreddy3207 3 ปีที่แล้ว

    helped a lot sir tku

  • @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.

  • @arathyasARK
    @arathyasARK 5 ปีที่แล้ว +2

    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

  • @iamnighthowlers
    @iamnighthowlers 5 ปีที่แล้ว +1

    Thank you sir....

    • @SudhakarAtchala
      @SudhakarAtchala  5 ปีที่แล้ว

      Plz subscribe to the channel and share with your friends thank you so much.

  • @nessy3543
    @nessy3543 4 ปีที่แล้ว +1

    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.

  • @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.

  • @vemarapunavya1736
    @vemarapunavya1736 2 ปีที่แล้ว +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  2 ปีที่แล้ว +1

      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 2 ปีที่แล้ว

      @@SudhakarAtchala thank you sir

  • @snehithacreations5738
    @snehithacreations5738 ปีที่แล้ว

    What is meant by dynamic programming code generation

  • @praneethreddy33
    @praneethreddy33 6 หลายเดือนก่อน

    thank you sir

    • @SudhakarAtchala
      @SudhakarAtchala  6 หลายเดือนก่อน

      Most welcome. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @noufalthegamer
    @noufalthegamer 3 ปีที่แล้ว +1

    Thankyou so much sir ❤️

    • @SudhakarAtchala
      @SudhakarAtchala  3 ปีที่แล้ว

      Plz subscribe to our channel. Thanks

  • @vaishnavivaishnavi4627
    @vaishnavivaishnavi4627 3 ปีที่แล้ว

    Did not understood common sub expression,if possible say it ASAP plzz

  • @siddhantdash4955
    @siddhantdash4955 3 ปีที่แล้ว +2

    please lock the exposure in camera .. the brightness of video flickers.

  • @meghasahu4058
    @meghasahu4058 ปีที่แล้ว

    👍

    • @SudhakarAtchala
      @SudhakarAtchala  ปีที่แล้ว

      Thanks. Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @valentinorossi3989
    @valentinorossi3989 4 หลายเดือนก่อน

    Common sub expression elimination
    Compile time evaluation,constant folding, constant propagation
    Code movement
    Dead code elimination
    Strength reduction

  • @muneefmuhammed8340
    @muneefmuhammed8340 5 ปีที่แล้ว +2

    at 11:32, instead of b=a+2, I think it is b=a+a

    • @SudhakarAtchala
      @SudhakarAtchala  5 ปีที่แล้ว +1

      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.

  • @thefirstme
    @thefirstme 5 ปีที่แล้ว +4

    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 ปีที่แล้ว +1

      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.

  • @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.

  • @venkatvenkatesh2323
    @venkatvenkatesh2323 หลายเดือนก่อน +1

    Any Tamil Students Here 🙋

    • @SudhakarAtchala
      @SudhakarAtchala  หลายเดือนก่อน +1

      Plz subscribe to the channel and if possible share with your friends. Thanks in advance..

  • @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.