![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算机系统
文章平均质量分 88
ChuanjieZhu
这个作者很懒,什么都没留下…
展开
-
CMU15213_Lecture_01_Course Overview
课程是卡耐基梅隆大学计算机课程: introduction to computer systems (2015 spring) 课程表:http://www.cs.cmu.edu/~./213/schedule.html 主讲:Abhinav Maurya https://ahmaurya.github.io/ 教材:Computer Systems: A Programmer’s Per...原创 2018-09-13 16:56:26 · 1369 阅读 · 0 评论 -
CMU15213_Lecture_04_Floating Point
试图还原老师讲课的思路。 Background: Fractional binary numbers 怎样表示小数? 一种是fixed point number;一种是float point number 定点数,顾名思义,小数点是固定的,能表示的整数位数m和小数位数n是固定的; 浮点数,更加自由,小数点可以移动,虽然m+n一定,但是m和n都是可以变化的,可以表示的数的范围更大。 ...原创 2018-09-23 20:50:51 · 332 阅读 · 1 评论 -
CMU15213_Lecture_05_Machine Level Programming I: Basics
试图还原老师讲课的思路。 History of Intel processors and architectures Intel x86 Processors,Backwards compatible up until 8086, introduced in 1978 使用的是Complex instruction set computer (CISC): 1.Many differ...原创 2018-09-25 21:53:00 · 302 阅读 · 0 评论 -
CMU15213_Lecture_02_ Bits, Bytes, and Integers
Bits & Bytes Everything is bits. 计算机为什么要选择二进制作为基数呢? 因为晶体管的开/关最容易实现和分辨。而其他1/3,1/4…都不好判断,更何况电路还有噪声呢,电路还有不稳定的时候呢。 进制之间的转换:二进制binary 八进制octal 十进制decimal 十六进制hexadecimal 1 Byte=8 bits 16是2的指...原创 2018-09-21 14:32:33 · 357 阅读 · 0 评论 -
CMU15213_Lecture_03_Bits, Bytes, and Integers cont
试图还原老师讲课的思路 Integers Addition, negation, multiplication, shifting Unsigned Addition w bits + w bits : 实际结果可能是(w+1)bits,如果只用w bits存储,最高位就会被丢弃(进位) 举个例子: 两个4bit的数相加,其true sum应当是0~30,用三维图表示...原创 2018-09-22 18:05:55 · 210 阅读 · 0 评论 -
CMU15213_Lecture_06_Machine Level Programming II: Arithmetic & Control
试图还原老师讲课的思路。 这节课就是讲汇编的。 Complete addressing mode, address computation Complete Memory Addressing Modes: D(Rb,Ri,S) Mem[Reg[Rb]+S*Reg[Ri]+ D] 举个例子, (%edx,%ecx,4) 0xf000 + 4*0x100 0xf400 ...原创 2018-10-19 16:09:30 · 285 阅读 · 0 评论 -
CMU15213_Lecture_07_Machine Level Programming III:Switch Statements and IA32 Procedures
试图还原老师讲课的思路。 Switch statements 一个例子: 很多人会认为switch是decision trees,实际上二者不一样,决策树是一个一个case判断执行;switch当条件不满足时就不会执行,直到遇到一个满足条件的case就开始顺序往下执行,即使不匹配的case也会被执行。 也有人认为switch和if是等价的,其实不然。case后面是只能跟常量(co...原创 2018-10-23 13:23:19 · 448 阅读 · 0 评论