subject
Engineering, 03.12.2019 19:31 Deascry

We will be using a cache simulator for this homework - we will go over the simulator in lab 12 on monday. for this homework we’re going to look at sort. cc, which is provided in the files on blackboard (or i261/cache). the program uses either exchange sort or quicksort to sort a list of 10,000 random numbers. the simple version of quicksort assumes that there are no repeated numbers in the list. the list is therefore initialized with the numbers 0 to , and is then scrambled by repeatedly swapping items. read through the source code and check that you understand what the program is doing. now instrument the sorting functions (add calls to inst r and inst w) to identify all references to list. you can also look at histogram. cc to see how the addresses for the data values were sent to the simulator. starting with exchange sort, run the code through the cache simulator (without the graphical interface) and experiment with different direct mapped caches: try cache sizes in the range 4 kbytes to 64 kbytes and block sizes in the range one to eight words. in each case, record the cache access statistics and attempt to understand the observed miss rates. note that exchange sorting a list of 10,000 items takes some time: you? ll probably want to interrupt each simulation (by pressing ctrl-c) after, say, 100,000 accesses, and record the statistics up to that point. next, edit sort. cc to enable quicksort in place of exchange sort, recompile and repeat the above experiments. submit a report showing the instrumented sort. cc code and detailing the results of your experiments (tables, graphs) for each cache size, block size, and sorting algorithm. you should be able to discuss the miss rates that you were seeing and comment on any trends that you are able to discern.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:20
Acertain flow of air (at stp) has a velocity distribution given by v i (in ft/s). if this flow is going through a 4 ft square area in the yz-plane (centered at the origin), what is the mass flow rate (in lbm/s)?
Answers: 2
question
Engineering, 04.07.2019 18:20
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
You know the right answer?
We will be using a cache simulator for this homework - we will go over the simulator in lab 12 on mo...
Questions
question
Mathematics, 13.07.2019 16:30
question
Mathematics, 13.07.2019 16:30
question
Mathematics, 13.07.2019 16:30
Questions on the website: 13722361