Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. How to access Processor cache

How to access Processor cache

Scheduled Pinned Locked Moved System Admin
c++tutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Surendra Vishwkarma
    wrote on last edited by
    #1

    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

    D J 2 Replies Last reply
    0
    • S 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

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • S 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

        J Offline
        J Offline
        Jeffrey Walton
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • J Jeffrey Walton

          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

          S Offline
          S Offline
          Surendra Vishwkarma
          wrote on last edited by
          #4

          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

          J 1 Reply Last reply
          0
          • S 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

            J Offline
            J Offline
            Jeffrey Walton
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups