Below I quote a program in C which performs memory test in a computer system (for example the BIOS performs a memory test before loading the operating system loader in any IBM PC). However, what we quote is different in its implementation. If you are dealing with embedded systems or operating systems programming it may be useful.

You can use this program on any system since you can change some variables depending on the architecture and have the ability to program the system with C.

Please feel free to ask me any questions you may have about the program.

The tests used in the memory test process are:

  1. Memory Test Data Bus
  2. Memory Test Address Bus
  3. Memory Test Device