A C function procprob has four arguments u, a, v, and b. Each is either a signed

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, where the numbers have different sizes. The function has the following body:

1 2 3 4  *u += a; *v += b; return sizeof (a) + sizeof (b); It compiles to the following x86-64 code:

(a) C code void proc(long int { 1 2 3 4 } (b) Generated assembly code 5 6 7 8 al, long #alp. a2, int *a2p.

5 6 movl ret $6, %eax

Determine a valid ordering and types of the four parameters. There are two correct answers.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems A Programmers Perspective

ISBN: 9781292101767

3rd Global Edition

Authors: Randal E. Bryant, David R. O'Hallaron

Question Posted: