64位操作系统教程项目文档

64位操作系统教程项目文档

64bit-os-tutorialThis OS Tutorial expands on the fundamental concepts covered in cfenollosa/os-tutorial and covers entering long mode on the x86_64 architecture. It also uses clang rather than relying on an external crosscompiler. I plan on keeping it up to date, so feel free to submit an issue!项目地址:https://gitcode.com/gh_mirrors/64/64bit-os-tutorial

1. 项目的目录结构及介绍

64bit-os-tutorial/
├── Chapter1/
│   ├── boot.asm
│   ├── linker.ld
│   ├── Makefile
│   └── README.md
├── Chapter2/
│   ├── kernel.c
│   ├── linker.ld
│   ├── Makefile
│   └── README.md
├── Chapter3/
│   ├── kernel.c
│   ├── linker.ld
│   ├── Makefile
│   └── README.md
├── LICENSE
└── README.md
  • Chapter1/: 包含启动过程的文件,如引导程序 (boot.asm) 和链接脚本 (linker.ld)。
  • Chapter2/: 包含与屏幕交互的文件,如内核代码 (kernel.c) 和链接脚本 (linker.ld)。
  • Chapter3/: 包含处理CPU错误和硬件请求的文件,如内核代码 (kernel.c) 和链接脚本 (linker.ld)。
  • LICENSE: 项目许可证文件。
  • README.md: 项目的主说明文件。

2. 项目的启动文件介绍

Chapter1/boot.asm

这是项目的引导程序文件,使用汇编语言编写,负责初始化CPU并进入64位长模式。

Chapter1/linker.ld

这是链接脚本文件,定义了引导程序的内存布局和链接规则。

Chapter1/Makefile

这是编译引导程序的Makefile文件,包含编译和链接的指令。

3. 项目的配置文件介绍

Chapter1/Makefile

这个Makefile文件包含了编译和链接引导程序的配置,如编译器选项和链接器选项。

Chapter2/Makefile

这个Makefile文件包含了编译和链接内核代码的配置,如编译器选项和链接器选项。

Chapter3/Makefile

这个Makefile文件包含了编译和链接内核代码的配置,如编译器选项和链接器选项。

linker.ld

在每个章节目录中都有一个 linker.ld 文件,用于定义内核代码的内存布局和链接规则。

以上是基于开源项目 https://github.com/gmarino2048/64bit-os-tutorial.git 生成的教程文档,包含了项目的目录结构、启动文件和配置文件的介绍。

64bit-os-tutorialThis OS Tutorial expands on the fundamental concepts covered in cfenollosa/os-tutorial and covers entering long mode on the x86_64 architecture. It also uses clang rather than relying on an external crosscompiler. I plan on keeping it up to date, so feel free to submit an issue!项目地址:https://gitcode.com/gh_mirrors/64/64bit-os-tutorial

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

虞旋律

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值