Skip to content
This repository was archived by the owner on Nov 12, 2020. It is now read-only.

Files

Latest commit

5e91d1d · Nov 9, 2019

History

History

project3

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 20, 2019
Nov 6, 2019
Nov 9, 2019
Nov 9, 2019
Nov 9, 2019
Nov 9, 2019
Nov 9, 2019

Vitrual memory implementation with a single level 32-Bit page table and FIFO page replacement algorithm

1. Files

    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

2. Compilation and run

1. Connect to thoth.cs.pitt.edu

2. Navigate to your dedicated directory:

    cd /u/OSLab/PITT_ID

3. Clone the cs1550 repo:

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.