L
L
lerneree2018-04-22 17:10:07
assembler
lerneree, 2018-04-22 17:10:07

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

2 answer(s)
D
Dmitry, 2018-04-22
@demon416nds

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 .

F
forspamonly2, 2018-04-22
@forspamonly2

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 question

Ask a Question

731 491 924 answers to any question