diff --git a/Part1-Timing/main.c b/Part1-Timing/main.c index 84e4b4f..1d95484 100644 --- a/Part1-Timing/main.c +++ b/Part1-Timing/main.c @@ -8,10 +8,10 @@ #define LINE_SIZE 64 // [1.2] TODO: Uncomment the following lines and fill in the correct size -//#define L1_SIZE TODO -//#define L2_SIZE TODO -//#define L3_SIZE TODO -//#define BUFF_SIZE TODO +#define L1_SIZE 768*1024 +#define L2_SIZE 16*1024*1024 +#define L3_SIZE 64*1024*1024 +#define BUFF_SIZE 16*1024*1024 int main (int ac, char **av) { @@ -37,7 +37,7 @@ int main (int ac, char **av) { // [1.2] TODO: Uncomment the following line to allocate a buffer of a size // of your chosing. This will help you measure the latencies at L2 and L3. - //volatile uint8_t *eviction_buffer = (uint8_t *)malloc(BUFF_SIZE); + volatile uint8_t *eviction_buffer = (uint8_t *)malloc(BUFF_SIZE); // Example: Measure L1 access latency, store results in l1_latency array for (int i=0; i