- 1、本文档共22页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
CPU从键盘读取hello命令.ppt
* 当在键盘敲回车时,操作系统执行一系列命令将代码和数据从磁盘调入主存。 * 一旦hello代码和数据存入主存,CPU就开始执行hello程序中的指令并依照这些指令将“hello\n”中的字节从存储器中拷贝到寄存器组再从寄存器中输送到显示终端。 * Back to our hello example. When the shell loaded and ran the hello program, and when the hello program printed its message, neither program accessed the keyboard, display, disk, or main memory directly. Rather, they relied on the services provided by the operating system. We can think of the operating system as a layer of software interposed between the application program and the hardware, as shown in Figure 1.10. All attempts by an application program to manipulate the hardware must go through the operating system. A Tour of Computer Systems /~course/cs101/2008 Hongfei Yan School of EECS, Peking University 9/24/2008 * Outline 信息就是位 + 上下文 程序被其他程序翻译成不同格式 处理器读并解释存储在存储器中的指令 操作系统管理软件 利用网络系统和其他系统通信 * What happens and why, when you run hello on your system ? 1 # include stdio.h 2 int main() 3 { 4 printf(“hello, world\n”); 5 } * Information is bits The source program is a sequence of bits each with a value of 0 or 1, Bits organized in 8-bit chunks called bytes. Each byte represents some text character in the program. Most modern systems represent text characters using the ASCII standard that represents each character with a unique byte-sized integer value. * Hello.c的ASCII表示 * 一个基本思想 系统中所有的信息 包括磁盘文件、存储器中的程序、用户数据以及网络上传送的数据, 都是由一串比特表示的。 区分不同数据对象的惟一方法是我们读到这些数据对象时的上下文 不同的上下文,同样字节序列可能表示一个整数、浮点数、字符串或者机器指令 与常见的整数和实数是不同的,需要了解数字的机器表示 * 一个具有很多命令的功能非常强大的编辑器 Install /tool/forWin/gvim72.exe 运行vim tutor 学习一个25-30分钟的教程 * Outline 信息就是位 + 上下文 程序被其他程序翻译成不同格式 处理器读并解释存储在存储器中的指令 操作系统管理软件 利用网络系统和其他系统通信 * Programs Are Translated by Other Programs into Different Forms The hello program begins life as a high-level C program which human-readable form. In order to run hello.c on the system, the individual C statements must be translated by other programs into a sequence of low-level machine-language instructions. These instructions are then packaged in a form
您可能关注的文档
- 9.2.3变压器的特性和额定值.ppt
- 926.保养感光鼓单元拆卸.ppt
- 94年第一次专门职业及技术人员高等暨普通考试医事人员、中医师.PDF
- 9.肾结石及肾积水的声像特征-上海交通大学医学院精品课程.doc
- Ansys在桩土共同作用分析中的应用.PDF
- A粒子物理、场论与宇宙学.PDF
- BKCI知名主编及期刊-南京理工大学图书馆.ppt
- BOD的测定及应用..ppt
- B、维新思想的发展.ppt
- CanadianJournalofPhysics加拿大物理学杂志.ppt
- 【大单元教学设计】苏教版小学科学五年级上册五单元《人体司令部》 单元教学规划 5.19《我们的大脑》课时教案(含课时练习).docx
- Unit1 Period5 Listening and Talking--人教版高中英语必修第二册教学课件(共19张PPT).pptx
- Unit1 Period1 Listening and Speaking--人教版高中英语必修第二册教学课件(共17张PPT).pptx
- Unit1 Period3 Language Focus--人教版高中英语必修第二册教学课件(共54张PPT).pptx
- Unit4 Period4 Discovering Useful Structures--人教版高中英语必修第二册教学课件(共19张PPT).pptx
- 【大单元教学设计】苏教版小学科学五年级上册五单元《人体司令部》 单元教学规划 5.20《大脑的开发和利用》课时教案(含课时练习).docx
- Unit2 Period4 Discovering Useful Structures--人教版高中英语必修第二册教学课件(共15张PPT).pptx
- 2026版高三一轮总复习(数学)85 第九章 第4课时 事件的相互独立性、条件概率与全概率公式.pptx
- Unit3 Period5 Listening and Talking--人教版高中英语必修第二册教学课件(共16张PPT).pptx
- 2026版高三一轮总复习(数学)75 第八章 第7课时 双曲线.pptx
文档评论(0)