110 - Longer Vector Length - Referring non-constant value in inner-loop
$ diff vlen2dd.c vlen2d.c // 2dd means '2 Dimensional Dynamic'
https://gyazo.com/c6c0da4856f881cbec76e168b0b6794f
$ cat -n vlen2dd.c
code:vlen2dd.c
6 #define PAD 1 /* padding in column to skew column in neighbour rows */ 14 double aMN+PAD; /* 2 dim array, 64M + pad */ 17 void myloop(int m, int n) {
18 int i, j;
19 for(i = 0; i < m; i++) {
20 for(j = 0; j < n; j++) {
22 }
23 }
24 }
$ gcc -O vlen2dd.c -o a2dd.out
$ a2dd.out // 0.315 sec
$ ncc -ftrace vlen2dd.c -o n2dd.out
$ n2dd.out // 0.003 sec = 105 times speed-up against gcc.
https://gyazo.com/dd9a49331f00c4543fa7148e354966d1