Lec-26: Loop Optimization in Compiler

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ก.พ. 2025

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

  • @aviksarkar707
    @aviksarkar707 4 ปีที่แล้ว +59

    Loop unrolling is used because having a loop means incrementing the counter and checking the condition everytime which is an overhead. But most importantly, it reduces branch penalties in architecture that supports pipelining.

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

      3:40 यह बिन्दु loop fusion पर भी लागू होता है। मैं हमेशा असमंजस में रहता था, कि loop दो भले या एक, क्योंकि theoretically कोई अंतर नहीं है। पर आपकी इस टिपण्णी ने और पाठ्यक्रम के इस विषय ने इसका निर्णायक उत्तर दे दिया है।
      > _"having a loop means incrementing the counter and checking the condition everytime which is an overhead"_

  • @FiyaAthwal
    @FiyaAthwal 9 หลายเดือนก่อน +8

    Aslam o Alikum I'm fiya from Pakistan. I'm taking your lecture from 3rd semester and its my 7th semester's final exams .You always explain me that thing in just 5 to 10 minutes which my teacher couldn't explain me in whole semester .Thank you so much for it .

  • @adityamahimkar6138
    @adityamahimkar6138 3 ปีที่แล้ว +12

    Loop optimization is like solving pattern printing problems straight forwardly😂
    Btw thanks sir your videos helped alot during my vivas✨

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

      😂😂

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

      6:17 आप loop unrolling की बात कर रहे हैं, पर ध्यान रहे कि code में ऐसा मत कर देना 😂
      क्योंकि ये वाली optimization compiler स्वयं से करता है, source code का इतना कोई लेना देना नहीं है इससे

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

    your videos are great!!my whole compiler design syllabus cant be completed without ur videos!thank you so much sir :)

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

    u seriously a gem sir 🤠

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

    Kahi na kahi ye baat sahi kah rahe h :)

  • @Malpekar-mo4wb
    @Malpekar-mo4wb 6 หลายเดือนก่อน +1

    Nice and Simple explanation.

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

    I am the 1000th like ❣️
    What a great teaching style

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

    Amazing way of teaching

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

    Awesome👏

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

    Thanku so much sir❤

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

    💜💜💎👌 you're awesome sir.

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

    Tq sir for your best efforts

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

    Thanks sir

  • @Er.Sunil.Pedgaonkar
    @Er.Sunil.Pedgaonkar ปีที่แล้ว

    Excellent

  • @GG-bo5vh
    @GG-bo5vh 4 ปีที่แล้ว +7

    Sir can we kindly get an idea of how many lectures/topics remain in this CD series?
    Or maybe an idea of the topics that are going to be covered further henceforth?

  • @akarshjain5197
    @akarshjain5197 4 ปีที่แล้ว +3

    Sir, plz make a videos on New topics of compiler design i.e. Liveness analysis, etc. please sir

  • @varshaelf
    @varshaelf 4 ปีที่แล้ว

    Thank you sir 🙏

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

    Please reorganize the playlist for the subject compiler design as some videos are not in a sequence

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

    ❤️

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

    for loop running for n

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

    Thank you sir

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

    Can u pls explain about flex bison .tq u for giving information us

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

    Sir app screen se nhi hatte hai kuch note Krna hoto kbhi board ko pura show nhi hone dete hai

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

    Can you please teach liveliness analysis?

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

    Love from NIT Silchor ❤ #fatipadihai #endsem #kalhai #onlinekro #nextsemfoddenge

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

    If loop invariant is used then don't we are getting 2 different values 1. If statement is moved outside loop on low freq region . 2. Inside loop (high freq) ?????

  • @traveldiary03
    @traveldiary03 4 ปีที่แล้ว

    concept is very clear
    Do u have video for java?

  • @AmirKhan-bn9tw
    @AmirKhan-bn9tw 4 ปีที่แล้ว

    Respected sir Kindly Complete Software Engineering pr Play list banayen.

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

    does compiler do the loop optimization or it needs human intervention ?

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

    Code movement rha gya sir?

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

    ⭐⭐⭐⭐⭐

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

    Are loop invariant and code motion same thing?

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

    6th Semester exams is coming 👀 all the best BPUT students 😅

  • @rajpanwar11
    @rajpanwar11 4 ปีที่แล้ว +3

    सर! क्या लूप अनरॉलिंग में सिम्पल एक्जीक्यूशन में मेमोरी कंज्यूम नहीं होगी? मतलब स्टेटमेंट बार बार लिखने से। कृपा रिप्लाइ अवश्य दें। धन्यवाद्

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

    Any one plz tell me how much memory used in infinite loop

    • @krishna.gupta29
      @krishna.gupta29 2 หลายเดือนก่อน +1

      It depends on the code inside the loop, if the loop continuously allocates memory then it can use up all available memory. Otherwise, it uses a fixed amount for the variables involved.

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

    Level

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

    4:57 AM

  • @vaishnavijahagirdar5116
    @vaishnavijahagirdar5116 4 ปีที่แล้ว

    Sir OS revision kare wale ho kya??.. why don't u respond!!!??

    • @vaishnavijahagirdar5116
      @vaishnavijahagirdar5116 4 ปีที่แล้ว

      I watched ur all OS lectures ...but long time ago...plzzzzzzz

    • @vaishnavijahagirdar5116
      @vaishnavijahagirdar5116 4 ปีที่แล้ว

      revision

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

      What kind of revision you want

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

      Varun Singla Oh thanks for replying!!...Sir meine apke OS ke 80 videos dekh liye hai.. par 4-5 months pehle... then i started doing other subjects n didnt revise .. now i have all the notes ... pr bahut kam yaad aa raha hai..toh plz agar aap gate ke point of view se jo imp hai uske toics ko sirf aise touch kar denge in one or two videos it'll be great....plzzzz

    • @vaishnavijahagirdar5116
      @vaishnavijahagirdar5116 4 ปีที่แล้ว

      Varun Singla Sir marathon class hota hai na vaise

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

    Printf( " VARUN SIR JI " );

    • @arpandas771
      @arpandas771 4 ปีที่แล้ว

      hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

    • @arpandas771
      @arpandas771 4 ปีที่แล้ว

      hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

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

    a-- loop me karna tha nahi toh infinite hoga

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

    Sir I m from EC background and request you to make a video on Computer organization that get added in GATE EC from this year...As you R best at computer organization so plz it would be great help 🙏🙏🙏💐

  • @user-ch2ni9lt9i
    @user-ch2ni9lt9i 3 ปีที่แล้ว +1

    i need to learn Urdu if I am to be a better programmer

  • @mahamfatima6117
    @mahamfatima6117 7 วันที่ผ่านมา

    This is violation first and only rule of programming
    If it works dont change it 😂

  • @SatnamSingh-kn5tm
    @SatnamSingh-kn5tm ปีที่แล้ว

    Dhakke se kuch bhi karte jaa rhe ho...XD

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

    Seventeenth like 😊

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

    a--;not in while loop

  • @DEVANSHGOEL-dq1wh
    @DEVANSHGOEL-dq1wh 2 ปีที่แล้ว +1

    Thank you sir