Giter VIP home page Giter VIP logo

hyper-os's Introduction

Hyper-OS

Hyper-OS(HOS) is an Operating System Simulator for teaching and research use. It contains basic virtual hardwares (such as CPU, APIC, MMU, etc) and a tiny kernel. Different from other teaching OSes, Hyper-OS is not running on a real machine, so that it's easy enough for students without hardware knowledges. HOS can show the principle of interrupt, paging, memory allocation, process scheduling and symmetrical multi-processing by writing simple user-time programs.

Build

Linux

Requirements

  • Python3
  • python3-pip
  • CMake >= 3.1
  • GNU Make

Get dependencies with python-pip

Install dependencies with the following command:

pip3 install -r requirements.txt

Compile hos kernel

Compile HOS using CMake and GNU make

mkdir build
cd build
cmake ..
make
cd ..
cp build/bin/hos bin/hos

the binary file is located in bin/hos.

Run the kernel

Just run the entry.py script, and have fun:

python3 entry.py

Windows

Requirements

  • Python3
  • python3-pip
  • CMake >= 3.1
  • Visual Studio 2017 or Visual Studio 2019

Notes:

  • Remember to add python to PATH

Get dependencies with python-pip

Install dependencies with the following command:

pip install -r requirements.txt

Compile hos kernel

Generate the Visual Studio Solution using cmake in PowerShell:

mkdir build
cd build
cmake ..

Then you need to compile HOS using Visual Studio. You may need to copy the executable file generated to bin/hos.

Run the kernel

Just run the entry.py script, and have fun:

python entry.py

hyper-os's People

Contributors

tqyaaaaang avatar ljt12138 avatar

Stargazers

GPJ avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.