Lec-26: Loop Optimization in Compiler

  Рет қаралды 241,396

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 KZfaq: / 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

Пікірлер: 58
@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 .
@rashmijoshi520
@rashmijoshi520 2 жыл бұрын
Amazing way of teaching
@shreyasichakraborty7886
@shreyasichakraborty7886 3 жыл бұрын
your videos are great!!my whole compiler design syllabus cant be completed without ur videos!thank you so much sir :)
@Malpekar-mo4wb
@Malpekar-mo4wb 3 күн бұрын
Nice and Simple explanation.
@tehreemtariq4688
@tehreemtariq4688 Жыл бұрын
u seriously a gem sir 🤠
@purpleocean1689
@purpleocean1689 3 жыл бұрын
Awesome👏
@ranchhordaschaanchad2623
@ranchhordaschaanchad2623 Жыл бұрын
Kahi na kahi ye baat sahi kah rahe h :)
@aku_11_11
@aku_11_11 3 жыл бұрын
💜💜💎👌 you're awesome sir.
@Faith39508
@Faith39508 2 ай бұрын
Thanku so much sir❤
@nidhisinghthakur3020
@nidhisinghthakur3020 3 жыл бұрын
Tq sir for your best efforts
@varshaelf
@varshaelf 3 жыл бұрын
Thank you sir 🙏
@sunnym1692
@sunnym1692 2 жыл бұрын
I am the 1000th like ❣️ What a great teaching style
@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 का इतना कोई लेना देना नहीं है इससे
@Er.Sunil.Pedgaonkar
@Er.Sunil.Pedgaonkar 11 ай бұрын
Excellent
@simranrazah2401
@simranrazah2401 3 жыл бұрын
Thanks sir
@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?
@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
@nakshatrayadav758
@nakshatrayadav758 Жыл бұрын
Please reorganize the playlist for the subject compiler design as some videos are not in a sequence
@ajayreddyvanga6556
@ajayreddyvanga6556 3 жыл бұрын
❤️
@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?
@AmirKhan-bn9tw
@AmirKhan-bn9tw 3 жыл бұрын
Respected sir Kindly Complete Software Engineering pr Play list banayen.
@ayushaggarwal4714
@ayushaggarwal4714 3 жыл бұрын
Are loop invariant and code motion same thing?
@hkm_vivekchauhan
@hkm_vivekchauhan 7 ай бұрын
for loop running for n
@pratyushsrivastava179
@pratyushsrivastava179 Жыл бұрын
Sir app screen se nhi hatte hai kuch note Krna hoto kbhi board ko pura show nhi hone dete hai
@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) ?????
@rajshekharrakshit9058
@rajshekharrakshit9058 2 жыл бұрын
does compiler do the loop optimization or it needs human intervention ?
@traveldiary03
@traveldiary03 3 жыл бұрын
concept is very clear Do u have video for java?
@rajpanwar11
@rajpanwar11 3 жыл бұрын
सर! क्या लूप अनरॉलिंग में सिम्पल एक्जीक्यूशन में मेमोरी कंज्यूम नहीं होगी? मतलब स्टेटमेंट बार बार लिखने से। कृपा रिप्लाइ अवश्य दें। धन्यवाद्
@adityagujrati1550
@adityagujrati1550 2 жыл бұрын
Love from NIT Silchor ❤ #fatipadihai #endsem #kalhai #onlinekro #nextsemfoddenge
@Patitapaban_sahoo
@Patitapaban_sahoo Жыл бұрын
6th Semester exams is coming 👀 all the best BPUT students 😅
@shailjagautam5526
@shailjagautam5526 3 жыл бұрын
Code movement rha gya sir?
@rohit200631
@rohit200631 2 ай бұрын
Any one plz tell me how much memory used in infinite loop
@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 🙏🙏🙏💐
@VoiceOfBilly
@VoiceOfBilly 3 жыл бұрын
Level
@shubhamsharma4406
@shubhamsharma4406 2 жыл бұрын
⭐⭐⭐⭐⭐
@parshwashah2356
@parshwashah2356 3 жыл бұрын
a-- loop me karna tha nahi toh infinite hoga
@FreyXFI
@FreyXFI Жыл бұрын
4:57 AM
@yashmishra9603
@yashmishra9603 3 жыл бұрын
Printf( " VARUN SIR JI " );
@arpandas771
@arpandas771 3 жыл бұрын
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
@arpandas771
@arpandas771 3 жыл бұрын
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
@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
@take_it_all_so_good
@take_it_all_so_good 3 жыл бұрын
Seventeenth like 😊
@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
Рет қаралды 146 М.
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
WORLD'S SHORTEST WOMAN
00:58
Stokes Twins
Рет қаралды 83 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
SHA: Secure Hashing Algorithm - Computerphile
10:21
Computerphile
Рет қаралды 1,2 МЛН
Optimization of Basic Block
10:03
Study Point
Рет қаралды 353
Loop Optimization Techniques | Code Optimization | Compiler Design
13:12
I2C and SPI on a PCB Explained!
15:34
Altium Academy
Рет қаралды 142 М.
Lec-28: What is Control Flow Graph | Basic Blocks
10:09
Gate Smashers
Рет қаралды 273 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 802 М.
Convolution Operation in CNN
10:58
Coding Lane
Рет қаралды 100 М.
5 Math Skills Every Programmer Needs
9:08
Sahil & Sarra
Рет қаралды 1 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН