百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
B

bcst_csapp

> 开发工具
开源

用 C 语言实现 CSAPP 的仓库

958 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

用 C 语言实现 CSAPP 的仓库

BCST (Bilibili 计算机科学主题) 项目 版权声明 此仓库是 BCST 项目的一部分。BCST 项目包含了 yangminz 所制作的源代码和视频。这些视频在 yaaangmin 的 Bilibili 上公开发布。源代码在 yangminz 上发布。BCST 项目下的任何仓库或视频均由 yangminz 独家拥有,未经 yangminz 允许,不得用于商业和牟利目的。 构建

bash
[python3 | py3 | ] ./cmd.py build [project name]

运行

bash
[python3 | py3 | ] ./cmd.py run [project name]

计算机系统 - Computer System A Programmer's Perspective (CSAPP)

Hello, dear viewers! This repo is the code I used while making the videos for "Deep Understanding of Computer Systems" (CSAPP), and it also includes a design manual, which is still being updated. The code, manual, and videos are all designed to introduce CSAPP to everyone, helping them read and understand the most basic computer system knowledge. Especially for undergraduate students in the lower years (freshmen and sophomores), students who are preparing to switch majors, and students who are taking cross-disciplinary research, they may have some basic programming languages, but they may not have enough knowledge about the computer system itself. My videos, code, and manual are designed to help everyone learn, and try to implement the knowledge points in CSAPP through code, and then use videos to connect the basic computer system knowledge. 以下是目录:

第 02 章 - 表示和操作信息

计算机可以看作是对位元串的翻译器,为了了解计算机系统,我们首先需要了解位元在计算机中是如何被表达和解释的,简单了解这些位运算的操作以及背后的代数结构。 2020-09-29 关于有符号与无符号整数,以及它们背后的代数结构。我设计了一张环形图,方便观众理解 Bit 串到有符号与无符号整数的映射。这张环形图在手册中更加精美:bilibili-video 2020-10-01 我们第一次动手编写 C 语言代码。一些简单的位运算,例如判断一个十六进制数中是否全部都是字母,使用卡诺图对布尔代数进行简化。一个基于位运算的数据结构:树状数组。bilibili-video

2020-10-16 浮点数的四种类型:规格化、非规格化、无穷大、非数。uint32_t到float的数值转换,特别是关于小数点的规定:bilibili-video

第 03 章 - 程序的机器级表示

在拥有由 Bit 组成的基本数据类型之后,我们开始考虑构建一台原始的冯诺依曼结构的计算机。实际上,我们是在做一个计算机的模拟器。为此,我们需要模拟 CPU 中的寄存器和内存等硬件,并在这些硬件的基础上编写指令集。我们的指令集是通过字符串编写的,就像我们通常编写的高级语言代码一样,实际上都是文本。我们使用一些编译基础知识来解析字符串指令集,将它们翻译成指令的数据类型,然后按照操作符和操作数解释执行这些代码。 在这里,我们实际上做了一层抽象:文本和字符串指令就像一台虚拟机,类似于JVM中的字节码,CLR中的IL,我们解释执行的是虚拟机指令。在字符串指令集上,我们实现了一些简单的指令,例如add、sub、mov,最重要的是关于过程控制的几个指令:call、push、pop、ret,我们对内存栈的控制就包含在这几条指令中。 2020-10-22 CPU 寄存器的模拟器,这是我们模拟器的第一行代码。我们利用结构体和联合等异构数据类型来描述寄存器:bilibili-video 2020-10-31 指令的数据结构,用于描述一条汇编指令

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cbilibilicsappsimulatorvideo

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具