Long arith(long x,long y,long z) { |long t1=x+y; long t2=z+t1; Long t3=x+4; long t4=y*48; Long t5=t3+t4; long rval=t2*t5; return rval ; In what registers are the arguments x, y, and z passed? In what register is variable rval returned? How many registers are involved in the execution of all the ALU operations? How many bytes are allocated to the stack frame of function arith? Justify your answer. Annotate each line of the assembly code obtained from the compiler and include the screensh

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter2: Introduction To Systems Architecture
Section: Chapter Questions
Problem 2VE: A(n) __________ is a storage location implemented in the CPU.
icon
Related questions
Question
|long arith(long x,long y,long z)
{
long t1=x+y;
long t2=z+t1;
long t3=x+4;
|long t4=y*48;
long t5=t3+t4;
long rval=t2*t5;
return rval ;
}
In what registers are the arguments x, y, and z passed?
In what register is variable rval returned?
How many registers are involved in the execution of all the ALU operations?
How many bytes are allocated to the stack frame of function arith? Justify your answer.
Annotate each line of the assembly code obtained from the compiler and include the screenshot.
Transcribed Image Text:|long arith(long x,long y,long z) { long t1=x+y; long t2=z+t1; long t3=x+4; |long t4=y*48; long t5=t3+t4; long rval=t2*t5; return rval ; } In what registers are the arguments x, y, and z passed? In what register is variable rval returned? How many registers are involved in the execution of all the ALU operations? How many bytes are allocated to the stack frame of function arith? Justify your answer. Annotate each line of the assembly code obtained from the compiler and include the screenshot.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Computer System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning