Lec-27: Question on Code Optimization in Compiler

  Рет қаралды 149,451

Gate Smashers

Gate Smashers

Күн бұрын

👉Subscribe to our new channel: / @varunainashots
►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/gatesmash...
► Follow us on Threads: www.threads.ne...
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Email us at: gatesmashers2018@gmail.com

Пікірлер: 27
@plops15
@plops15 3 жыл бұрын
Sir, Thank you so much, please jaldi se sab videos daalke humara sem clear karvado.
@riyaanhussain7851
@riyaanhussain7851 2 жыл бұрын
kabhi kabhi mera dil me khayal aata ha agar Gate Smashers nhi hota to mera kya banta
@abhishakya3146
@abhishakya3146 3 жыл бұрын
Hello, When you had started this channel and I had seen your first video. At that time I was thinking you are outstanding.your explanation way and content outstanding. I know you will hit the 10M Subscribers.
@sinigeorge9529
@sinigeorge9529 3 жыл бұрын
Hi Sir, Thanks for always updating the playlist!
@sinigeorge9529
@sinigeorge9529 3 жыл бұрын
@Ray Marc @Tate Emmet Comments seems to be from bots
@duadua3687
@duadua3687 3 жыл бұрын
Best teacher in world sir g ap sa request hy mcq k sb subject k lecturer upload kr dya plzzzz
@saurabhdubey9487
@saurabhdubey9487 3 жыл бұрын
Even i%2 can be changed to i=i+2 in for loop It's a strength reduction and loop invariant I think
@krishgarg5665
@krishgarg5665 2 жыл бұрын
Great observation
@anitajain9896
@anitajain9896 3 жыл бұрын
Hello Sir, Thankyou for explaining all topics in wonderful way ,it helps me alot in my bachelor's degree. I need your guidance in my career .so how can I ask?
@shashanksharma7747
@shashanksharma7747 3 жыл бұрын
one of the best faculty in youtube platform
@purpleocean1689
@purpleocean1689 3 жыл бұрын
Short and crisp. Perfect.
@lalitkumar8445
@lalitkumar8445 Жыл бұрын
Hi sir, can we shift condition statement from High frequency to low frequency region like u shift if(i%2)? ....bcos next x and y statements execution depends on this condition and in case if we shift it then j loop will not run for each value of i like as usual it was before shifting.
@akarshjain5197
@akarshjain5197 3 жыл бұрын
Sir ji plz do not forget to upload videos on new topics please sir
@Er.Sunil.Pedgaonkar
@Er.Sunil.Pedgaonkar Жыл бұрын
Excellent
@sukh-e4206
@sukh-e4206 3 жыл бұрын
Sir please cover the new topic of compiler design for gate 2021
@PranjayVats
@PranjayVats 2 жыл бұрын
In the first loop cant we increment the loop variable 'i' by 2 every time rather than by 1 as we can see we are doing further operations only when i%2 is true and there is no else part. This will also optimize our code as our loop will excecute for N/2 times. But can anyone tell me that if we do that then what kind of optimization would it be?
@Moglikidunia
@Moglikidunia 2 жыл бұрын
Sir kindly en k handouts b share kia krein .
@UKAFSHOHAIL
@UKAFSHOHAIL 3 жыл бұрын
Thankyou sir for giving this wonderful information
@grovestreet9165
@grovestreet9165 3 жыл бұрын
can we optimize this code like this ?? int total_sum=n*(n-1)/2; int u=n/2-1; int num=4*total_sum; int x=num + 5*u*(u+1);; int y=7*(n-1)+ num; cout
@pateldarsh1698
@pateldarsh1698 11 ай бұрын
Khadda hu aaj bhi vahi jo tera intezaar tha..........Malak..........Why you broke my heart :(
@Soumyajit_619
@Soumyajit_619 10 ай бұрын
Listen to 'Dil mera churaya kyun'... You will get the answer
@ratnakantahanse2661
@ratnakantahanse2661 3 жыл бұрын
Thank you sir ❤️❤️❤️...
@HassanRaza-r6l
@HassanRaza-r6l 9 ай бұрын
sir g app kbhi pakistan b aaeinn please😍😍🙃🙃
@entire_life
@entire_life 3 жыл бұрын
Sir, Scientific Techanical assistance paper solution!?
@umernoor4655
@umernoor4655 3 жыл бұрын
I couldn't understand the option ( C ) Scope of strength reduction.
@bhojaksmith
@bhojaksmith 3 жыл бұрын
for example: X Multiply by 2 can be swapped with Shift operation (in this case it is multiply by 4, so we can instead replace it with 2 shift operation instead)
Lec-28: What is Control Flow Graph | Basic Blocks
10:09
Gate Smashers
Рет қаралды 280 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 30 МЛН
DID A VAMPIRE BECOME A DOG FOR A HUMAN? 😳😳😳
00:56
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 49 МЛН
How To Revise Multiple Subjects 🔥| In Last 4 Months | GATE 2025 | Abhishek Sir
Unacademy GATE & ESE - Civil & ES
Рет қаралды 23
Lec-7: What is Parsing & Types of Parsers | Syntax Analysis
9:38
Gate Smashers
Рет қаралды 1 МЛН
Lec-26: Loop Optimization in Compiler
6:56
Gate Smashers
Рет қаралды 246 М.
Lec-2: Phases of Compiler with examples | Compiler Design
14:33
Gate Smashers
Рет қаралды 1 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 30 МЛН