How to find the size of the L1 cache line size with IO timing measurements?

后端 未结 8 750
深忆病人
深忆病人 2021-01-30 09:10

As a school assignment, I need to find a way to get the L1 data cache line size, without reading config files or using api calls. Supposed to use memory accesses read/write timi

8条回答
  •  半阙折子戏
    2021-01-30 09:35

    If you get stuck in the mud and can't get out, look here.

    There are manuals and code that explain how to do what you're asking. The code is pretty high quality as well. Look at "Subroutine library".

    The code and manuals are based on X86 processors.

提交回复
热议问题