Give you C code for two problems; (one) a pipelining problem that you will need to state how many cycles it takes to execute the program with and without a 4-stage pipeline; (two) a cache problem where you need to determine how many cycles it takes to execute the program with and without a cache.
Pick a loop optimization and a straight line code optimization and make a C program where those optimizations will improve execution (by how much?)