Lec-26: Loop Optimization in Compiler

  Рет қаралды 240,759

Gate Smashers

Gate Smashers

Күн бұрын

👉Subscribe to our new channel: / @varunainashots
0:00 - Introduction
0:34 - Loop optimization
1:11 - Code Motion
3:33 - Loop Fusion
5:38 - Loop unrolling
► Compiler Design(Complete Playlist):
• Compiler Design (Compl...
Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Design and Analysis of algorithms (DAA):
• Design and Analysis of...
►Database Management System:
• DBMS (Database Managem...
► Software Engineering:
• Software Engineering
►Artificial Intelligence:
• Artificial Intelligenc...
►Computer Networks:
• Computer Networks (Com...
►Operating System:
• Operating System (Comp...
►Structured Query Language (SQL):
• Structured Query Langu...
►Discrete Mathematics:
• Discrete Mathematics
►Number System :
• Number system
►Theory of Computation :
• TOC(Theory of Computat...
►Cloud Computing & BIG Data:
• Cloud Computing & BIG ...
►Programming in C :
• C Programming
►Data Structure:
• Data Structure
►Computer Architecture :
• Computer Organization ...
►Graph Theory (Complete Playlist):
• Graph Theory
►Digital Logic:
• Digital Logic (Complet...
---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
► Subscribe to us on KZbin: / gatesmashers
►Subscribe to our new channel: / @varunainashots
► Like our page on Facebook: / gatesmashers
► Follow us on Instagram: / gate.smashers
► Follow us on Instagram: / varunainashots
► Follow us on Telegram: t.me/gatesmashersofficial
► Follow us on Threads: www.threads.net/@gate.smashers
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Email us at: gatesmashers2018@gmail.com

Пікірлер: 57
@aviksarkar707
@aviksarkar707 3 жыл бұрын
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 Ай бұрын
3:40 यह बिन्दु loop fusion पर भी लागू होता है। मैं हमेशा असमंजस में रहता था, कि loop दो भले या एक, क्योंकि theoretically कोई अंतर नहीं है। पर आपकी इस टिपण्णी ने और पाठ्यक्रम के इस विषय ने इसका निर्णायक उत्तर दे दिया है। > _"having a loop means incrementing the counter and checking the condition everytime which is an overhead"_
@FiyaAthwal
@FiyaAthwal 3 ай бұрын
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 .
@shreyasichakraborty7886
@shreyasichakraborty7886 3 жыл бұрын
your videos are great!!my whole compiler design syllabus cant be completed without ur videos!thank you so much sir :)
@rashmijoshi520
@rashmijoshi520 2 жыл бұрын
Amazing way of teaching
@ranchhordaschaanchad2623
@ranchhordaschaanchad2623 Жыл бұрын
Kahi na kahi ye baat sahi kah rahe h :)
@tehreemtariq4688
@tehreemtariq4688 Жыл бұрын
u seriously a gem sir 🤠
@purpleocean1689
@purpleocean1689 3 жыл бұрын
Awesome👏
@aku_11_11
@aku_11_11 3 жыл бұрын
💜💜💎👌 you're awesome sir.
@adityamahimkar6138
@adityamahimkar6138 3 жыл бұрын
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 Ай бұрын
6:17 आप loop unrolling की बात कर रहे हैं, पर ध्यान रहे कि code में ऐसा मत कर देना 😂 क्योंकि ये वाली optimization compiler स्वयं से करता है, source code का इतना कोई लेना देना नहीं है इससे
@GG-bo5vh
@GG-bo5vh 3 жыл бұрын
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?
@sunnym1692
@sunnym1692 2 жыл бұрын
I am the 1000th like ❣️ What a great teaching style
@nidhisinghthakur3020
@nidhisinghthakur3020 3 жыл бұрын
Tq sir for your best efforts
@Faith39508
@Faith39508 2 ай бұрын
Thanku so much sir❤
@nakshatrayadav758
@nakshatrayadav758 Жыл бұрын
Please reorganize the playlist for the subject compiler design as some videos are not in a sequence
@varshaelf
@varshaelf 3 жыл бұрын
Thank you sir 🙏
@ayushaggarwal4714
@ayushaggarwal4714 3 жыл бұрын
Are loop invariant and code motion same thing?
@Er.Sunil.Pedgaonkar
@Er.Sunil.Pedgaonkar 11 ай бұрын
Excellent
@simranrazah2401
@simranrazah2401 3 жыл бұрын
Thanks sir
@DEVANSHGOEL-dq1wh
@DEVANSHGOEL-dq1wh 2 жыл бұрын
Thank you sir
@akarshjain5197
@akarshjain5197 3 жыл бұрын
Sir, plz make a videos on New topics of compiler design i.e. Liveness analysis, etc. please sir
@rajshekharrakshit9058
@rajshekharrakshit9058 2 жыл бұрын
does compiler do the loop optimization or it needs human intervention ?
@murikinatimadhusudhanaredd991
@murikinatimadhusudhanaredd991 6 ай бұрын
Can u pls explain about flex bison .tq u for giving information us
@shivamsharma9974
@shivamsharma9974 3 жыл бұрын
Can you please teach liveliness analysis?
@arpitbisen2620
@arpitbisen2620 Жыл бұрын
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) ?????
@pratyushsrivastava179
@pratyushsrivastava179 Жыл бұрын
Sir app screen se nhi hatte hai kuch note Krna hoto kbhi board ko pura show nhi hone dete hai
@hkm_vivekchauhan
@hkm_vivekchauhan 7 ай бұрын
for loop running for n
@AmirKhan-bn9tw
@AmirKhan-bn9tw 3 жыл бұрын
Respected sir Kindly Complete Software Engineering pr Play list banayen.
@ajayreddyvanga6556
@ajayreddyvanga6556 3 жыл бұрын
❤️
@rohit200631
@rohit200631 Ай бұрын
Any one plz tell me how much memory used in infinite loop
@shailjagautam5526
@shailjagautam5526 3 жыл бұрын
Code movement rha gya sir?
@rajpanwar11
@rajpanwar11 3 жыл бұрын
सर! क्या लूप अनरॉलिंग में सिम्पल एक्जीक्यूशन में मेमोरी कंज्यूम नहीं होगी? मतलब स्टेटमेंट बार बार लिखने से। कृपा रिप्लाइ अवश्य दें। धन्यवाद्
@traveldiary03
@traveldiary03 3 жыл бұрын
concept is very clear Do u have video for java?
@peace8461
@peace8461 3 жыл бұрын
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 🙏🙏🙏💐
@adityagujrati1550
@adityagujrati1550 2 жыл бұрын
Love from NIT Silchor ❤ #fatipadihai #endsem #kalhai #onlinekro #nextsemfoddenge
@VoiceOfBilly
@VoiceOfBilly 3 жыл бұрын
Level
@Patitapaban_sahoo
@Patitapaban_sahoo Жыл бұрын
6th Semester exams is coming 👀 all the best BPUT students 😅
@FreyXFI
@FreyXFI Жыл бұрын
4:57 AM
@shubhamsharma4406
@shubhamsharma4406 2 жыл бұрын
⭐⭐⭐⭐⭐
@yashmishra9603
@yashmishra9603 3 жыл бұрын
Printf( " VARUN SIR JI " );
@arpandas771
@arpandas771 3 жыл бұрын
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
@arpandas771
@arpandas771 3 жыл бұрын
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
@take_it_all_so_good
@take_it_all_so_good 3 жыл бұрын
Seventeenth like 😊
@vaishnavijahagirdar5116
@vaishnavijahagirdar5116 3 жыл бұрын
Sir OS revision kare wale ho kya??.. why don't u respond!!!??
@vaishnavijahagirdar5116
@vaishnavijahagirdar5116 3 жыл бұрын
I watched ur all OS lectures ...but long time ago...plzzzzzzz
@vaishnavijahagirdar5116
@vaishnavijahagirdar5116 3 жыл бұрын
revision
@varunsingla4878
@varunsingla4878 3 жыл бұрын
What kind of revision you want
@vaishnavijahagirdar5116
@vaishnavijahagirdar5116 3 жыл бұрын
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 3 жыл бұрын
Varun Singla Sir marathon class hota hai na vaise
@parshwashah2356
@parshwashah2356 3 жыл бұрын
a-- loop me karna tha nahi toh infinite hoga
@user-ch2ni9lt9i
@user-ch2ni9lt9i 3 жыл бұрын
i need to learn Urdu if I am to be a better programmer
@SatnamSingh-kn5tm
@SatnamSingh-kn5tm Жыл бұрын
Dhakke se kuch bhi karte jaa rhe ho...XD
@manjunathamakavalli
@manjunathamakavalli 2 жыл бұрын
a--;not in while loop
@shahinparween3496
@shahinparween3496 3 жыл бұрын
Thank you sir
Lec-27: Question on Code Optimization in Compiler
7:09
Gate Smashers
Рет қаралды 145 М.
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 112 МЛН
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
Loop Optimization Techniques | Code Optimization | Compiler Design
13:12
Lec-28: What is Control Flow Graph | Basic Blocks
10:09
Gate Smashers
Рет қаралды 272 М.
Is the C programming language still worth learning?
9:27
Jacob Sorber
Рет қаралды 92 М.
How to start Competitive Programming ? Guide for Beginners !
11:05
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 792 М.