Menu

(Solved) : Incorrect Question 8 0 2 Pts Consider Following C Code M N Constants Declared Define Int A Q44025532 . . .

Incorrect Question 8 0/2 pts Consider the following C code in which M and N are constants declared with #define. int arri(M)

Incorrect Question 8 0/2 pts Consider the following C code in which M and N are constants declared with #define. int arri(M) (N); int arr2 (N) [M]; void scale(int i, int j, int s) { arri[i][j] *=S; arr2[j][i] * s; The following is the translation of scale’s function body to x86 instructions: leaq adda movl imull movl leaq adda imull movl (%rdi,%rdi,8), %rax %rsi, %rax %edx, %ecx arr1(%rax,4), %ecx %ecx, arr1(%rax,4) (%rsi,%rsi,4), %rax %rax, %rdi arr2(%rdi,4), %edx %edx, arr2(%rdi,4) What are the values of Mand N? M = $* 36i+4j; N= 20j +4i *s; Show transcribed image text Incorrect Question 8 0/2 pts Consider the following C code in which M and N are constants declared with #define. int arri(M) (N); int arr2 (N) [M]; void scale(int i, int j, int s) { arri[i][j] *=S; arr2[j][i] * s; The following is the translation of scale’s function body to x86 instructions: leaq adda movl imull movl leaq adda imull movl (%rdi,%rdi,8), %rax %rsi, %rax %edx, %ecx arr1(%rax,4), %ecx %ecx, arr1(%rax,4) (%rsi,%rsi,4), %rax %rax, %rdi arr2(%rdi,4), %edx %edx, arr2(%rdi,4) What are the values of Mand N? M = $* 36i+4j; N= 20j +4i *s;

Expert Answer


Answer to Incorrect Question 8 0/2 pts Consider the following C code in which M and N are constants declared with #define. int arr…

OR