Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. The following procedure evaluates the function Z( x, y) where 2( x, y) = 27% -14ty + (10% 17y)*(19*x 3Y) + - procedure Evalz;
1. The following procedure evaluates the function Z( x, y) where 2( x, y) = 27% -14ty + (10% 17"y)*(19*x 3Y) + - procedure Evalz; var x, y, z: integer; begin write 'x? read x; write cr, lf, 'y? ' read y; z := 27*x- 14*y + (10*x write cr, lf,"z( x, y) 17*y)*(19"X :, z; + 3*y) ; - end Evalz; Translate Evalz into x86 assembly language. Allocate words for the variables x, y, and z, and use GetInt and PutInt for integer I/o. Use the Sethi-Ullman algorithm to write optimal code for evaluating z
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started