Vitrual memory implementation with a single level 32-Bit page table and FIFO page replacement algorithm
- vmsim.c: Source file for Virtual Memory implementation
- vmsim.h: Header file for Virtual Memory implementation
- hashmap.c: Source file for simple hashmap implementation
- hashmap.h: Header file for simple hashmap implementation
- Makefile: Makefile for building the vmsim program
1. Connect to thoth.cs.pitt.edu
2. Navigate to your dedicated directory:
- cd /u/OSLab/PITT_ID
3. Clone the cs1550 repo:
- git clone https://github.com/hmofrad/CS1550
Navigate to project 3 directory:
- cd CS1550/project3
4. Extract a trace file (simple, gcc, gzip, mcf, and swim traces)
- gunzip traces/gcc.trace.gz
5. Install
- make (or "make DEBUG=-DDEBUG" to enable debug messages)
6. Run
- ./vmsim -n <numframes> -a <fifo> <tracefile>
- ./vmsim -n 4 -a fifo traces/gcc.trace
7. Uninstall
- make clean
Note: Please visit Courseweb for a detailed version of project instructions PDF file.