mlock in cache

Fri Aug 2 15:37:00 GMT 2013

On 08/02/2013 04:27 PM, Andrew Haley wrote:
>> I'm pretty sure that there should be
>> a way for this to be done in assembly,
> Why do you think so?  I'm looking at
> and I
> can't see it.

I'm saying so because even if there is no provided API to do so, if you 
work at a low level (requires messing with the memory management also) 
there must be a way to achieve it. Also a non-intrusive but naive way is 
also to perform repeated prefetching so that you keep the lines at the 
top of the LRU.

Christos Tsopokis

More information about the Gcc-help mailing list