Question: Consider the following C code, where M and N are constants declared with #define and the assembly code generated for it on a 64-bit machine:

Consider the following C code, where M and N are constants declared with #define and the assembly code generated for it on a 64-bit machine: copy: #define M #define N int array1[M] [N]; int array2 [N] [M]; pusha mova movsla movslq leag shla movi imula movi popa reta Srbp frsp, Srbp Gesi, Brax fedi, frex (frax, frax, 8), frdx $3, rdx (frdx, Srcx, 4), fedx $ 84, 8rcx, Srex Sedx, (8rcx, frax, 4) Erbp int copy (int i, int j) { arrayl[i][j] = array2[j][i]; } What are the values of Mand N? M= NE Explain your answer to get points. Show all your work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
