Sum += *Elementptr++;
}
C
10 X 10 100
10 X 10 3 X 3 25 X 25
CPU
18.5
15% 45%
30
20
Ada 2.80 1.60 43% 2:1
C compiler 1 2.25 1.65 27% 4:3
C compiler 2 2.58 2.58 0% l:l
C compiler 3 2.31 0.99 57% 2:1
c
Sum += *Elementptr++;
}
C
10 X 10 100
Ada 2.80 1.60 43% 2:1
C compiler 1 2.25 1.65 27% 4:3
C compiler 2 2.58 2.58 0% l:l
C compiler 3 2.31 0.99 57% 2:1
c