Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

plz solve all thes q 1. Show assembly language for a machine of your choice, corresponding to each of the following C statements: (a) A=(B+C)(CD);

plz solve all thes q image text in transcribed
image text in transcribed
1. Show assembly language for a machine of your choice, corresponding to each of the following C statements: (a) A=(B+C)(CD); (b) for (i=1;i=10;i=i+1)A=A+i; 2. Show the difference between compiler output and interpreter output for each of the following source inputs: (a) A=12; B=6; while (B1){x=x/2;i=i+1;} (d) A=BCD/A+DA; 5. Show how each of the following C source inputs can be optimized using global optimization techniques: (a) for (i=1;i=10;i=i+1){X=i;Y=X/2;A[i]=X;} (b) if (X>0){X=2;Y=3;} else {Y=4;X=2} (c) X=2; goto 99; X=3; 99: cout X 6. Show in assembly language for a machine of your choice, the output of the code generator for the following atom string: (ADD, A, B, Templ) (SUB, C, D, Temp2) (TEST,Temp1, Remp ADD R1,B STO Temp1,R1 MOV C,Templ (c) CMP A,B BH L1 BL2 L1: MOV A,B B L3 L2: MOV B,A L3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Explain the chemical properties of acids with examples.

Answered: 1 week ago

Question

Write the properties of Group theory.

Answered: 1 week ago

Question

5. If yes, then why?

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago