-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHello.cpp
More file actions
40 lines (38 loc) · 1.65 KB
/
Copy pathHello.cpp
File metadata and controls
40 lines (38 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Welcome to the THU Computer Architecture Sample Code Repository
* 清华大学计算机组成原理课程 —— 样本代码仓库
*
* 本仓库基于 Patterson & Hennessy《计算机组成与设计》体系构建
* 包含 CPU 模拟器、缓存模拟器、流水线可视化等完整实现
*
* Part I 基础篇 (01-03): 导论/数据表示/算术运算
* Part II 处理器 (04-07): ISA/单周期CPU/流水线/冒险处理
* Part III 存储 (08-10): 缓存/虚拟内存/I-O总线
* Part IV 高级 (11-12): 分支预测/超标量/多核一致性
*
* 编译: g++ -std=c++17 filename.cpp -o filename
* 运行: ./filename
*/
#include <iostream>
using namespace std;
int main() {
cout << "========================================" << endl;
cout << " THU Computer Architecture Repo " << endl;
cout << " 清华大学计算机组成原理课程样本代码仓库 " << endl;
cout << "========================================" << endl;
cout << endl;
cout << "Based on:" << endl;
cout << " Patterson & Hennessy:" << endl;
cout << " <<Computer Organization and Design>>" << endl;
cout << " RISC-V Edition, Morgan Kaufmann" << endl;
cout << endl;
cout << "12 Chapters / ~50 Files:" << endl;
cout << " Part I (01-03): Foundations " << endl;
cout << " Part II (04-07): Processor Design " << endl;
cout << " Part III(08-10): Memory & I/O " << endl;
cout << " Part IV (11-12): Advanced Architecture" << endl;
cout << endl;
cout << "Navigate to each chapter folder for sample code." << endl;
cout << "Each .cpp file can be compiled independently." << endl;
return 0;
}