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 scaleshort x short y short z
short t ;
return t;
Compiling the actual function with gcc yields the following assembly code:
short scaleshort x short y short z
x in rdi, y in rsi, z in rdx
scale:
leaq rdi,rsi,rax
leaq rdxrsi,rdx
leaq rax,rdxrdx
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
