"In-depth understanding of computer systems (third edition)" Chapter One study concluded
1.1 + context information is bit
hello程序的生命周期是从一个源程序开始的,文件名是hello.c。源程序实际上就是由0和1 组成的位序列,8个被组织成一组,称字节,每个字节表示程序中的某些字符。由ASCII字符构成的文件称为文本文件,所有其他文件称为二进制文件。
1.2 program is translated into a different format other programs
GCC编译驱动程序读取源文件hello.c,并把它翻译成一个可执行目标文件。这个过程可以分为四个阶段完成。
1.3 Learn how to build system to work is a great advantage
理解编译系统如何工作对于优化程序性能、理解链接时出现的错误、避免安全漏洞等等大有益处。
1.4 the processor reads and interprets the instructions stored in memory
1.硬件组成
2.运行hello程序:读取键盘的“hello”命令,将hello文件中的代码与数据从磁盘加载到主存,执行hello文件中的指令。
1.5 Cache crucial
Storage hierarchy formed 1.6
在处理器和一个较大较慢的设备之间插入一个更小更快的存储设备。
1.7 operating system management hardware
操作系统两个基本的功能:防止硬件被失控的应用程序滥用;向应用程序提供简单一致的机制来控制复杂而又通常大不相同的低级硬件设备。通过进程、虚拟内存、文件的抽象概念来实现这两个功能。
Network communication systems between 1.8