Cache Simulator using C