没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
CSAPP L1 Intro.1
Wu Spring 11 ©USTC
Computer Systems:
A Programmer’s Perspective
计算机系统详解
Lecture 1
Intro
February 25, 2011
Wu junmin (jmwu@ustc.edu.cn)
CSAPP L1 Intro.2
Wu Spring 11 ©USTC
Outlin
e
°
Course Theme
°
Five great realities of computer systems
°
Administrative Matters
°
Lecture topics and assignments
CSAPP L1 Intro.3
Wu Spring 11 ©USTC
课程出发点
°
Abstract vs. Reality
°
抽象是必须的,但也应该考虑问题的实现 !
°
其他计算机课程通常强调抽象的地方:
•
抽象数据类型
•
渐进分析法
°
这些抽象往往是受限的:
•
特别是当计算机系统中存在一些小的缺陷
•
有必要去深入了解计算机系统中一些底层的实现
°
通过了解具体的实现有助于:
•
成为更有效率的程序员
-
能够更有效的找出并且消除 bug
-
能够更好的进行程序性能调优
•
为以后的 计算机类“系统”级课程做好准备
-
编译 , 操作系统 , 网络 , 计算机体系结构 , 嵌入式系统等等
CSAPP L1 Intro.4
Wu Spring 11 ©USTC
Great Reality
#1
°
Int’s
不是整数
, Float’s
不是实数
°
举例
•
x
2
≥ 0?
-
Float’s: 是 !
-
Int’s:
–
40000 * 40000 --> 1600000000
–
50000 * 50000 --> ??
•
(x + y) + z = x + (y + z)?
-
Unsigned & Signed Int’s: 是 !
-
Float’s:
–
(1e20 + -1e20) + 3.14 --> 3.14
–
1e20 + (-1e20 + 3.14) --> ??
-1794967296
0
CSAPP L1 Intro.5
Wu Spring 11 ©USTC
Co
mp
uter
Arit
hm
etic
°
Does not generate random values
•
Arithmetic operations have important mathematical properties
°
Cannot assume “usual” properties
•
Due to finiteness of representations
•
Integer operations satisfy “ring” properties
-
Commutativity, associativity, distributivity
•
Floating point operations satisfy “ordering” properties
-
Monotonicity, values of signs
°
Observation
•
Need to understand which abstractions apply in which contexts
•
Important issues for compiler writers and serious application
programmers
剩余47页未读,继续阅读
资源评论
- wff2008102402016-01-19感觉没什么用
- luckystarzj2013-11-15很好的一本书
优哉游哉0o
- 粉丝: 8
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功