Question: For the following C function, the types of the four arguments are defined by typedef: Determine the possible combinations of types of the four arguments
For the following C function, the types of the four arguments are defined by typedef:

Determine the possible combinations of types of the four arguments (there may be more than one).
double funct1 (arg1_t p, arg2_t q, arg3_t r, arg4_t s) { return p/(q+r) S; } When compiled, GCC generates the following code: 1 2 3 4 5 698 av 7 9 double functi(argi_t p, arg2_t q, arg3_t r, arg4_t s) funct1: vcvtsi2ssq vaddss %xmm0, %xmm2, %xmmo %rsi, %xmm2, %xmm2 vcvtsi2ss vdivss %xmm0, vunpcklps vcvtps2pd %edi, %xmm2, %xmm2 %xmm2, %xmm0 %xmm0, %xmmo, %zmmo %xmmo, %xmmo vsubsd %xmm1, %xmm0, %xmmo ret
Step by Step Solution
3.42 Rating (158 Votes )
There are 3 Steps involved in it
We can see from the assembly code that there are two integer arguments passed in registers rdi and r... View full answer
Get step-by-step solutions from verified subject matter experts
