版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、presentation,1 Information=Bit+Context As we all know, each program is a sequence of bits,each with a value of 0 or 1,and 8-bit=1byte,each byte represents some text character in the program.But in most modern systems represent text character using the ASCII standard,for example,the/n corresponding t
2、o the integer value 10.,As for the Context,It was the only thing that distinguishes different data objects when we view them. 2 Programs are translated by other programs. If we want our programs can run on the system,the individual C statements must be translated by other programs into a sequence of
3、 low-level-machine-language instruction.So it s a necessary thing that we have to do.Just like the operating system have to through device drive to contral the hardware devices.,Compilation system 1.preprocessing phase pilation phase 3.assembly phase 4.linking phase,3 Understand how compilation syst
4、ems work can make a difference of our program. optimizing program performance understanding link-time error Avoiding security holes,How the “hello program” running in the hardware,Hardware Organization of a system,Made by 20121120178,BUSES,The buses can be divided into 3 types, the data bus, address
5、 bus and control bus. The data bus is used for transferring data. The address bus is used for transferring data address. The control bus is used for transferring the control signal.,Running through the system is a collection of electrical called buses.,I/O Devices,Input / output devices are the syst
6、ems connection to the external world. The example system has four I/O devices: a keyboard and mouse for user input, a display for user output, and a disk drive(硬盘驱动器) for long-term storage of data and programs.,Virtual Memory,By li jianqing,Whats virtual memory?,When your computer does not have enou
7、gh RAM to hold a program,it might use virtual memory.,There are a few pointsto note aboutthe virtual memory,1、Idea of extending memory 2、Is not the RAM 3、No fake but virtual,1、One way to extend the amount of memory accessible by a program is to use disk,2、,In effect,RAM acts like cache for disk.,3、T
8、he problem with disk is that its very slow to access.,Disk is easy to get many spaces for a small cost. But we still want to avoid accessing the disk unnecessarily.,Use of virtual memory,a、virtual memory is old concept b、People have virtual memory before they had cache c、virtual memory only appeared
9、 on mainframes for a long time,caches matter,What is cache? : Cache is a kind of special memory and is circuted on the processor chip.,Funcation,Now, maybe you are curious about the funcation of the cache? Or even you wonder whether the computer cant work without the cache. I must say that the computer can also work with out the cache. But it works too sl
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
评论
0/150
提交评论