说明
本文是个人学习用的非官方中英对照译文,原文:https://diveintosystems.org/book/C5-Arch/summary.html。
原书采用 CC BY-NC-ND 4.0 许可(禁止演绎),请勿公开传播本译文。
标为「译注」「现代更新」的内容是译者补充,不代表原书作者观点;代码与原文逐字一致,未作改动。
5.10. Summary
本章介绍了计算机的体系结构,重点是处理器(CPU)的设计与实现,以便理解它如何运行程序。如今的现代处理器都基于冯·诺依曼体系结构,它定义了一种存储程序的通用计算机。冯·诺依曼体系结构的通用设计使它能执行任何类型的程序。
In this chapter, we presented the computer’s architecture, focusing on its processor (CPU) design and implementation in order to understand how it runs a program. Today’s modern processors are based on the von Neumann architecture, which defines a stored-program, universal computer. The general-purpose design of the von Neumann architecture allows it to execute any type of program.
为了理解 CPU 如何执行程序指令,我们构建了一个示例 CPU:从基本的逻辑门构件开始,搭建出共同实现一个数字处理器的各种电路。数字处理器的功能由控制电路、存储电路和算术/逻辑电路组合而成,并由一个时钟电路驱动其执行程序指令的取指、译码、执行和写回各个阶段。
To understand how the CPU executes program instructions, we built an example CPU, starting with basic logic-gate building blocks to create circuits that together implement a digital processor. A digital processor’s functionality is built by combining control, storage, and arithmetic/logic circuits, and is run by a clock circuit that drives the Fetch, Decode, Execute, and WriteBack phases of its execution of program instructions.
所有处理器体系结构都实现了某种指令集架构(ISA),ISA 定义了 CPU 指令集合、CPU 寄存器集合,以及执行指令对处理器状态的影响。ISA 有很多种,一种 ISA 也常常有多种不同的微处理器实现。如今的微处理器还采用多种技术来提升处理器性能,包括流水线执行、指令级并行和多核设计。
All processor architectures implement an instruction set architecture (ISA) that defines the set of CPU instructions, the set of CPU registers, and the effects of executing instructions on the state of the processor. There are many different ISAs, and there are often different microprocessor implementations of a given ISA. Today’s microprocessors also use a variety of techniques to improve processor performance, including pipelined execution, instruction-level parallelism, and multicore design.
想更广、更深地了解计算机体系结构,我们推荐阅读一本计算机体系结构教材1。
For more breadth and depth of coverage on computer architecture, we recommend reading a computer architecture textbook1.
脚注
Footnotes
- 推荐一本:David A. Patterson 和 John L. Hennessy 合著的《Computer Organization and Design: The Hardware and Software Interface》(中译本《计算机组成与设计:硬件/软件接口》)。
- One suggestion is “Computer Organization and Design: The Hardware and Software Interface”, by David A. Patterson and John L. Hennessy.