Skip to content

linpingchuan/OS

Repository files navigation

一天学会做操作系统

这个标题绝对吹牛逼,连我自己都这么觉得...

相关资料

1.使用 Rust 编写操作系统

2.使用 Rust 编写操作系统

3.自己实现的一个基于x86的操作系统

4.XV6 中译版

5.WritingOS

6.Operating_Systems_From_0_to_1

7.blog_os

8.使用 Rust 编写操作系统 原版博客

9.消息队列的编写

10.调试器中断点是如何工作的

11.使用裸函数处理异常消息

12.Python 内核剖析

13.Python 开发解析

14.PEP 339: Design of the CPython compiler - probably the most important and comprehensive piece of official documentation for the Python compiler. Being very short, it painfully displays the scarcity of good documentation of the internals of Python.

安装 Rust 命令

# 切换成实验版本
rustup toolchain install nightly
# 默认为实验版本
rustup default nightly
# 更新
rustup update

安装 系统开发脚手架

# 安装构建工具
cargo install cargo-xbuild
# 安装 bootimage
cargo install bootimage --version "^0.7.7"
# 安装 llvm-tools-preview
rustup component add llvm-tools-preview

编译启动命令

# 编译系统镜像
cd ~/projects/hello && cargo bootimage
# 切换到系统目录
cd ~/projects/hello/target/os/debug
# 启动虚拟机
qemu-system-x86_64 -drive format=raw,file=bootimage-hello.bin

测试

# 测试 lib.rust
cargo xtest --lib

# 直接运行
cargo xrun

About

Rust os

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages