#!/bin/csh
#  Lab #5 example script

# compile matmul with  100x100 array;  OFFSET of 0;  FILLER of 0
echo compiling...
cc -DN=100 -DOFFSET=0 -DFILLER=0  -Wl,-r -non_shared -no_inline -O3 matmul.c -o matmul.rr

# compile the atomized version as matmul.atomd
echo atomizing...
atom matmul.rr instr2.c analy2.c -o matmul.atomd

# compile the non-instrumented version for doing a timing run on
echo making executable...
ld matmul.rr -o matmul

# do a timed run 
echo timed run...
matmul

# do a dinero run for multi-level cache
source 3level
