Friday, 15 February 2013

c++ - How do pointers allow Hardware access? -


The indicators in C are very powerful and seem efficient but how can one access pointer access to the hardware?

This idea of ​​mine will set the value of a pointer equal to the corresponding object of the hardware and instead of teasing it through the pointer, but if you already have sufficient access to hardware objects and properties, then that To use a pointer, where the pointer comes in playback? Maybe visualizing something wrong?

I'm running on Windows 7.

For a basic example with an explanation of why the need for an indicator is to manipulate the assets of the hardware.

The pointer keeps a memory address. And Memory Range Numbers addressed to all parts of RAM are not alone in the range of categories in memory address and some range is mapped to the hardware registers. And by writing these registers, we can use the hardware. Of course, it also depends on which operating system and which hardware This is one.

No comments:

Post a Comment