Answer the question
In order to leave comments, you need to log in
Are there any assembler commands to work with the processor cache?
Hello!
please tell me what are the possibilities in the assembler to work with the cache memory of the processor of different levels.
also what are the possibilities and utilities to find out the amount of cache memory and its speed.
Thanks
Answer the question
In order to leave comments, you need to log in
You can find out the processor model and find out the volume from it.
You can indirectly measure the volume by speed.
You can indirectly measure speed .
Everything else is impossible .
there are instructions (more precisely, hints, because without guarantees) for preloading (prefetching) data into caches of different levels: PREFETCHT0, PREFETCHT1, PREFETCHT2, PREFETCHNTA.
there are instructions for writing and reading past the cache (non-temporal store & load): MOVNTI, MOVNTQ, MOVNTDQ, MOVNTPD, MOVNTPS and MOVNTDQA.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question