Question: Given that int sum _ element ( int i , int mat 1 [ ] [ M ] , int j , int mat 2

Given that
int sum_element(int i, int mat1[][M],
int j, int mat2[][N]){
return mat1[i][j]+ mat2[j][i];
}
compiles as
movslq %edi, %rdi
movslq %edx, %rdx
leaq (%rdi,%rdi,2),%rax
leaq (%rsi,%rax,4),%rax
movl (%rax,%rdx,4),%eax
leaq (%rdx,%rdx,4),%rsi
leaq (%rcx,%rsi,4),%rcx
addl (%rcx,%rdi,4),%eax
ret
then what are the values of the constants M and N among the following possibilities

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!