image-20211218192055370

image-20211218192635616

(2)

image-20211218193208507

image-20211218192103171

(1)三地址码:

1  i = 1
2  if i > m goto 17
3  j = 1
4  if j > n goto 15
5  t1 = i * n
6  t2 = t1 + j
7  t3 = t2 * 4
8  t4 = i * n
9  t5 = t4 + j
10 t6 = t5 * 4
11 t7 = b[t6]
12 a[t3] = t7
13 j = j + 1
14 goto 4
15 i = i + 1
16 goto 2

(2)

B1	1  i = 1

B2	2  if i > m goto 17

B3	3  j = 1

B4	4  if j > n goto 15

B5	5  t1 = i * n
	6  t2 = t1 + j
	7  t3 = t2 * 4
	8  t4 = i * n
	9  t5 = t4 + j
	10 t6 = t5 * 4
	11 t7 = b[t6]
	12 a[t3] = t7
	13 j = j + 1
	14 goto 4

B6	15 i = i + 1
	16 goto 2

B7

image-20211218195201035