Description: This program is mainly used to test the system calculates the difference in speed from 1 to 10 million in the three cases. Three cases were: data in registers calculations, calculated using the cache, do not use cach calculated using only memory. Written three programs: Register version, cache version, uncachable version have the desired effect. The difficulty in the program on and off the system cache, after a lot of search for information, find the five methods, finally successful, all expressed with a failed code failed (reason for the failure of the code is made up, one for We then detours to avoid the second is hoped to be improved, turn failure into success).
To Search:
File list (Check if you may need any files):
Cache
.....\cachable.c
.....\register.c
.....\register.s
.....\uncachable.c
.....\uncachable_change_cr0(failed).c
.....\uncachable_dma(failed).c
.....\uncachable_kernel(failed).c