Page 1 ! " "! # class10.ppt$%&# '()*+ +$%,-./012-310413) 5013 6 6 ##000'0 0 # 0## 13 76 0 4# 76# 3 3108 76'36# 1 #01 01+ % +$%,- 0!' 33 3 00 0 0 33-9##001:'1331 # 0'000 ' 93:3 #307' 33#01' &08* 010 0 # 33+ +$%,-;3 0# 3# 0 ##1 '# 10 3'38 66#0 0133'# 0 0 <"'1'# 3# 10 # 10 < < 16' 1# 013 016 # 60 014'01 013 0 33#01 ##";= # <<0#''<Page 2+ $ +$%,- #0 03>0 / #3?#166#3 3600061 ##0 5001' #30for (i = 0; i < n; i++)for (j = 0; j < n; j++)a[n*i + j] = b[j];for (i = 0; i < n; i++) {int ni = n*i;for (j = 0; j < n; j++)a[ni + j] = b[j];}+ @ +$%,-0. 0 A61 B00## . 1.for (i = 0; i < n; i++)for (j = 0; j < n; j++)a[n*i + j] = b[j];imull %ebx,%eax # i*nmovl 8(%ebp),%edi # aleal (%edi,%eax,4),%edx # p = a+i*n (scaled by 4)# Inner Loop.L40:movl 12(%ebp),%edi # bmovl (%edi,%ecx,4),%eax # b+j (scaled by 4)movl
View Full Document