Question: Ekran Alintis 1. (16 pts) Consider the following C code, where M and N are constants declared with #define and the assembly code generated for

Ekran Alintis 1. (16 pts) 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]; pushq mova movsla movsla leaq shlq movi imula movl popa reta rbp @rsp, rbp esi, %rax Gedi, rcx (%rax, %rax,8), rdx $3, %rdx (%rdx, %rcx, 4), %edx $84, %rcx, %rcx %edx, (%rcx, %rax, 4) %rbp int copy (int i, int j) { arrayl[i][j] array2[j][i]; }
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
