title: How to interface a memory hardware to a C++ program?
body: <p>If I have a special hardware unit with some storage in it is connected to the computer and is memory mapped, so that 
  its storage is accessible in the address range 0x55500000 – 0x555fffff how an I interface this hardware unit to 
  my C++ program so that dynamic memory is allocated in this hardware unit, not in my computer’s memory? 
  I need to implement a class which has the following function in it.</p>
  
  <pre><code>void * allocMemoryInMyHardware(int numberOfBytesToAllocate);
  </code></pre>
  
  <p>which returns a pointer to the allocated memory chunk, or null if unable to allocate.</p>