0

I have already searched for related issues, but all of them are related to dcache. I can't think of a way to determine the characteristics of L1 icache.

2
  • 1
    Are you talking about x86? Because then you just need to parse the cpuid instruction. See here. Note the bits indicating whether it's an instruction, data, or unified cache. Commented Dec 7, 2024 at 13:51
  • 1
    You may also be interested in Google's cpu_features library in particular its GetX86CacheInfo() function. It supports other architectures, too, but not usually with cache info. Commented Dec 7, 2024 at 15:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.