Question: A C function procprob has four arguments u, a, v, and b. Each is either a signed number or a pointer to a signed number,
A C function procprob has four arguments u, a, v, and b. Each is either a signed number or a pointer to a signed number, where the numbers have different sizes. The function has the following body:



Determine a valid ordering and types of the four parameters. There are two correct answers.
1 2 3 4 *u += a; *v += b; return sizeof (a)+ sizeof (b); It compiles to the following x86-64 code: procprob: movslq %edi, %rdi addq %rdi, (%rdx) addb %sil, (%rcx)
Step by Step Solution
3.28 Rating (157 Votes )
There are 3 Steps involved in it
This problem is a bit tricky due to the mixing of different data sizes Let us first describe one ans... View full answer
Get step-by-step solutions from verified subject matter experts
