Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tqyaaaaang/Hyper-OS
Operating System Simulator
https://github.com/tqyaaaaang/Hyper-OS
Last synced: 2 months ago
JSON representation
Operating System Simulator
- Host: GitHub
- URL: https://github.com/tqyaaaaang/Hyper-OS
- Owner: tqyaaaaang
- Created: 2019-04-26T10:48:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T01:07:28.000Z (over 5 years ago)
- Last Synced: 2024-08-02T01:25:28.005Z (6 months ago)
- Language: C++
- Size: 374 KB
- Stars: 19
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```