Skip to content

hSimLab/SimCourse

Repository files navigation

CPU & OS simulation Elective Course

What is the course about?

Сourse repository is dedicated to CPU and OS simulation in third bachelor semester at MIPT.

All teaching materials used during the semester are here.

Demo Code

You can find simulator library and test generation script here.

During the course we consistently improve our toy model of the simulator.

  1. Naive Interpreter
  2. Inline Assembly model
  3. AsmJit Assembly model
  4. JIT translator

Here are the results of a comparison of four different models on a test in which we varied the number of loop iterations (aka LC):

  • MIPS: img

  • Time, seconds: img

Slides

  1. Introduction
  2. Software Modeling
  3. Interpreters
  4. Decoder
  5. ELF
  6. Advanced Interptreters
  7. Full-System Simulation
  8. Trace Driver Simulation
  9. Cycle-Accurate Models
  10. Caches
  11. Program Execution Analysis

Usage

From the root of source directory configure:

mkdir -p build/
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release

Then run build:

cmake --build build/ -j<nproc>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published