#define M ____ #define N ____ int arr1[M][N]; int arr2[N][M]; void swap(int k, int j){ arr1[k][j] = arr2[j][k]; } int main(){ int j = 0; int k = 0; for (k = 0; k < M; k++){ for (j = 0; j < N; j++){ swap (k,j); } } return 0; } ASSEMBLY: ( arr1 = 0x8049540, arr2 = 0x8049600 ) 08048308 : 8048308: push %ebp 8048309: mov %esp,%ebp 804830b: mov 0x8(%ebp),%edx 804830e: mov %edx,%eax 8048310: shl $0x3,%eax 8048313: add %edx,%eax 8048315: mov %eax,%ecx 8048317: add 0xc(%ebp),%ecx 804831a: mov 0xc(%ebp),%edx 804831d: mov %edx,%eax 804831f: shl $0x2,%eax 8048322: add %edx,%eax 8048324: add 0x8(%ebp),%eax 8048327: mov 0x8049600(,%eax,4),%eax 804832e: mov %eax,0x8049540(,%ecx,4) 8048335: pop %ebp 8048336: ret ---- Floating Point - Prepare for next recitation (9/29) Recommended problems: 2.33, 2.34, 2.37