This exercise demonstrates the different memory attributes used for different types of memory access, and the resulting impact on the allowed usage of memory (read or write). The access types used in this lab exercise are READ, WRITE, and EXECUTE. The effect of not committing pages and accessing a guarded page is also shown.
In this exercise, the student is required to run the program:
MEMLAB2.EXE
This program does the following:
The program listing is shown in Source Code MEMLAB2.C.
This program should be run a number of times during the course of the exercise, trying the different attributes and reading from/writing to the memory allocated.
If you are able to do the exercise Please do so now. If not, refer to the following explanation.