How to access Processor cache
-
Please let me know How we can get the size of processor cache? and how can er read and write processor cache using MFC?
Surendra Vishwkarma
-
Please let me know How we can get the size of processor cache? and how can er read and write processor cache using MFC?
Surendra Vishwkarma
The most recently used code and data from all your running processes is loaded into the cache automatically. This is controlled by the CPU itself and not something that is accessible at the developer level.
-- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
-
Please let me know How we can get the size of processor cache? and how can er read and write processor cache using MFC?
Surendra Vishwkarma
Hi Surendra,
Surendra Vishwkarma wrote:
...how can er read and write processor cache using MFC?
As Dan stated, you probably won't be able to 'read' or 'write' the cache per se.
Surendra Vishwkarma wrote:
How we can get the size of processor cache?
If I recall correctly, inline assembly and CPUID. I think you will have to decode the extended features flags to get the size, cache associativity, etc. Jeff
-
Hi Surendra,
Surendra Vishwkarma wrote:
...how can er read and write processor cache using MFC?
As Dan stated, you probably won't be able to 'read' or 'write' the cache per se.
Surendra Vishwkarma wrote:
How we can get the size of processor cache?
If I recall correctly, inline assembly and CPUID. I think you will have to decode the extended features flags to get the size, cache associativity, etc. Jeff
Thanks a lot, But i wanted to know whether we can create a shared memory. And this shared memmory are to be shared by Ocx's embedded in a webpage. And also can we increase or decrease the size of this shared memory?
Surendra Vishwkarma
-
Thanks a lot, But i wanted to know whether we can create a shared memory. And this shared memmory are to be shared by Ocx's embedded in a webpage. And also can we increase or decrease the size of this shared memory?
Surendra Vishwkarma
Hi Surendra,
Surendra Vishwkarma wrote:
But i wanted to know whether we can create a shared memory...
You did not ask that ;). Take a look at TLS, IPC, etc. They can use Shared Memory. Jeff