diff --git a/related_info/lab3/locality/Makefile b/related_info/lab3/locality/Makefile new file mode 100644 index 0000000..62ae3a2 --- /dev/null +++ b/related_info/lab3/locality/Makefile @@ -0,0 +1,7 @@ +all: goodlocality badlocality +goodlocality: + gcc -O0 -g -o goodlocality goodlocality.c +badlocality: + gcc -O0 -g -o badlocality badlocality.c +clean: + rm goodlocality badlocality diff --git a/related_info/lab3/locality/badlocality.c b/related_info/lab3/locality/badlocality.c new file mode 100644 index 0000000..3bd87ee --- /dev/null +++ b/related_info/lab3/locality/badlocality.c @@ -0,0 +1,12 @@ +#include +#define NUM 1024 +#define COUNT 10 +int A[NUM][NUM]; +void main (void) { + int i,j,k; + for (k = 0; k +#define NUM 1024 +#define COUNT 10 +int A[NUM][NUM]; +void main (void) { + int i,j,k; + for (k = 0; k