Question: Consider the following code, in which we have omitted the expression being computed: short scale 3 ( short x , short y , short z

Consider the following code, in which we have omitted the expression being computed:
short scale3(short x, short y, short z){
short t =_______________ ;
return t;
}
Compiling the actual function with gcc yields the following assembly code:
short scale3(short x, short y, short z)
x in %rdi, y in %rsi, z in %rdx
scale3:
leaq (%rdi,%rsi,5),%rax
leaq 9(%rdx,%rsi,3),%rdx
leaq (%rax,%rdx,7),%rdx
ret
Fill in the missing expression in the C code. Show your work also.
write your answer in following format
short t =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!