C Program to determine Levels & Size of Cache

前端 未结 6 986
北海茫月
北海茫月 2020-11-30 00:38

Full Re-Write/Update for clarity (and your sanity, its abit too long) ... (Old Post)

For an assignment, I need to find the levels (L1,L2,...) and si

6条回答
  •  盖世英雄少女心
    2020-11-30 01:19

    For the benchmarking with varying strides, you could try lat_mem_rd from lmbench package, it's open-source: http://www.bitmover.com/lmbench/lat_mem_rd.8.html

    I had posted my port for Windows to http://habrahabr.ru/post/111876/ -- it's quite lengthy to be copypasted here. That's from two years ago, I didn't test it with modern CPUs.

提交回复
热议问题