Memory Consistency Model Simulator

This program was written in an effort to simulate different memory consistency models and how they effect performance of modern processor systems. The program uses a text file with assembly instructions as inputs. It then parses the instruction and follows the specific memory model’s rules for ordering or the relaxed allowance of re-ordering to complete the task. The goal of any memory consistency model is to complete the program in a perceived manner that has the identical outcome of a program that is processed serially, but executing the program in a parallel and in a much more efficient manner.

Since multiple input files are utilized I created a Bash script to automate the process of running the program and testing the program outputs against known correct values. This expedited the testing portion of the project immensely.

The project in its entirety can be found in the Git repository below.
(You must be logged in to view the contents of the repository)

https://git.robsengineeringadventures.com/rmhunter/memory-consistency-simulator

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.