Skip to content

Commit

Permalink
Fix OCR typo - PR by @gtn1024 (Hansimov#21)
Browse files Browse the repository at this point in the history
`ccl` -> `cc1`
  • Loading branch information
gtn1024 authored Feb 8, 2024
1 parent e81cb00 commit 974e6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch01-a-tour-of-computer-systems/1.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hello 程序的生命周期是从一个高级 C 语言程序开始的,因为
![图 1-3 编译系统](../.gitbook/assets/01-03-compilation-systems.png)

* **预处理阶段。**预处理器(cpp)根据以字符 \# 开头的命令,修改原始的 C 程序。比如 hello.c 中第 1 行的`#include <stdio.h>`命令告诉预处理器读取系统头文件 stdio.h 的内容,并把它直接插入程序文本中。结果就得到了另一个 C 程序,通常是以 .i 作为文件扩展名。
* **编译阶段。**编译器(ccl)将文本文件 hello.i 翻译成文本文件 hello.s,它包含一个**汇编语言程序**。该程序包含函数 main 的定义,如下所示∶
* **编译阶段。**编译器(cc1)将文本文件 hello.i 翻译成文本文件 hello.s,它包含一个**汇编语言程序**。该程序包含函数 main 的定义,如下所示∶
* ```bash
main:
subq $8, %rsp
Expand Down

0 comments on commit 974e6c7

Please sign in to comment.