Lec-27: Question on Code Optimization in Compiler

preview_player
Показать описание

►Compiler Design(Complete Playlist):

Other subject-wise playlist Links:
--------------------------------------------------------------------------------------------------------------------------------------
►Design and Analysis of algorithms (DAA):
►Database Management System:
► Software Engineering:
►Artificial Intelligence:
►Computer Networks:
►Operating System:
►Structured Query Language (SQL):
►Discrete Mathematics:
►Number System :
►Theory of Computation :
►Cloud Computing & BIG Data:
►Programming in C :
►Data Structure:
►Computer Architecture :
►Graph Theory (Complete Playlist):
►Digital Logic:

---------------------------------------------------------------------------------------------------------------------------------------
Our social media Links:
--------------------------------------------------------------------------------------------------------------------------------------
►For Any Query, Suggestion or notes contribution:
Рекомендации по теме
Комментарии
Автор

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.

abhishakya
Автор

Sir, Thank you so much, please jaldi se sab videos daalke humara sem clear karvado.

plops
Автор

Hi Sir, Thanks for always updating the playlist!

sinigeorge
Автор

kabhi kabhi mera dil me khayal aata ha agar Gate Smashers nhi hota to mera kya banta

riyaanhussain
Автор

one of the best faculty in youtube platform

shashanksharma
Автор

Best teacher in world sir g ap sa request hy mcq k sb subject k lecturer upload kr dya plzzzz

duadua
Автор

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?

anitajain
Автор

Even i%2 can be changed to i=i+2 in for loop
It's a strength reduction and loop invariant I think

saurabhdubey
Автор

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.

lalitkumar
Автор

Thankyou sir for giving this wonderful information

UKAFSHOHAIL
Автор

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?

PranjayVats
Автор

Khadda hu aaj bhi vahi jo tera intezaar you broke my heart :(

pateldarsh
Автор

Sir ji plz do not forget to upload videos on new topics please sir

akarshjain
Автор

Sir please cover the new topic of compiler design for gate 2021

sukh-e
Автор

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<<x<<y<<endl;

grovestreet
Автор

Sir kindly en k handouts b share kia krein .

Moglikidunia
Автор

sir g app kbhi pakistan b aaeinn please😍😍🙃🙃

HassanRaza-rl
Автор

Sir, Scientific Techanical assistance paper solution!?

entire_life
Автор

Started watching the whole playlist before 1 hour of final exam...😢

lishaanjum
Автор

I couldn't understand the option ( C ) Scope of strength reduction.

umernoor