COS331
HW4
Nicholas Pease

How To Compile
Compiling this program is done using gcc as follows
gcc hw4.c

How to Run
Run this program by executing the resulting binary
./a.out

Limitations of Program
If you want to mess with the page sizes and counts, you should be able to modify these three DEFINES in the homework file to achieve this, but this is untested
#define PAGE_SIZE 256
#define PHYSICAL_PAGE_COUNT 64
#define LOGICAL_PAGE_COUNT 256

Beyond this, there are no limitations of the program in regards to the assignment. Everything should function as directed.

Aspects of Program to Improve
I think I have already implemented this program to the best of my ability in C. I would love to take it to a object-oirented language like C++ instead, where I could extend the memory management further, but as it stands, this program is fairly modular, allowing easy exchange of the LRU and modification of pseudo-system resources. Perhaps an optimization to not create the bin file if it already exists would be advantageous. 

Sources:
fseek (https://www.geeksforgeeks.org/fseek-in-c-with-example/)