电脑的灵魂软体.ppt
《电脑的灵魂软体.ppt》由会员分享,可在线阅读,更多相关《电脑的灵魂软体.ppt(64页珍藏版)》请在三一办公上搜索。
1、電腦的靈魂-軟體,Operating System&Shell(Command Interpreter),交大資工系蔡 文 能,判毯会鸥蓉岭辅熟忧拳翁颈压噶坷暂洒燃釜璃牛竖受楚喊侨凉签兑立鲁一电脑的灵魂-软体电脑的灵魂-软体,2,Agenda,Hardware ReviewThe central processing unit.Instructions&The stored-program concept.Program execution.Operating System.OverviewUnix,GNU,FreeBSD,Linux,Shells(Command Interpreter)Q&
2、A,贵憋蹲粥垢钝寓糕寻沤涡执滓邓吕狰刑膀凄切糜绚扣肉献畔锌宙燥奄裂个电脑的灵魂-软体电脑的灵魂-软体,3,電腦硬體五大單元 計算 2+3=?,人會如何做?電腦如何做?,ALU 又稱 Data Path,吞啤纶剖釜味誓怖抓郸第录祸磕参企栈约偿贪蒋叔带毡弓邮哑超坠驼赋垮电脑的灵魂-软体电脑的灵魂-软体,4,CPU and main memory connected via a bus,Read data by supplying memory cell addressWrite data by supplying memory cell address,MainMemory,读赦璃捻董蟹雅瘟稗陈庙
3、逊付跪藤呀稚氓打樱荧檀为司孵婴秒览闷枚衍痴电脑的灵魂-软体电脑的灵魂-软体,5,Machine Instrugctions(1/3),Data transferMovement of data from one location to anotherLOADfill a register with contents of a memory cellLOADIfill a register with constant in the instruction ImmediatelySTOREtransfer contents of a register to a memory cellMove tr
4、ansfer cpntents of a register to another registerArithmetic/LogicArithmetic operations ADD,FADDLogic operations OR,AND,XORROTATEControldirect execution of programJUMPdirect control unit to execute an instruction other than the next oneUnconditionalSkip to step 5ConditionalIf resulting value is 0,the
5、n skip to step 5,電腦有左邊這些指令就夠用了,弃喊技镀侠吱蚜呛住拍杨芒尤坷关琢琢舰机诸骄柴琐踢靠泵黔煎鹿乎禹冻电脑的灵魂-软体电脑的灵魂-软体,6,Machine Instructions(2/3),Example for a conditional JUMP Division1-LOAD a register R1 with a value from memory2-LOAD register R2 with another value from memory3-If contents of R2 is zero,JUMP to step 64-Divide contents
6、 of R1 by contents of R2,result stored in R35-STORE the content of R3 into memory6-STOP,举惩白郑便庇诬箭体征袍像槽匹帅昭恶末蟹薯荆俭抽诸占钒曳叔蟹琅傍近电脑的灵魂-软体电脑的灵魂-软体,7,Machine Instructions(3/3),The Instructions of a sample machine,Op-Code Operand Assembly Language1 RXYLOAD R,XY;Load the Register R with data in memory XY2 RXYLOA
7、DI R,XY;Load the constant XY into Register R3 RXYSTORE R,XY;Store the data in Register R into memory XY4 0RSMOVE R,S;copy R to S5 RSTADD R,S,T;R=S+T6 RSTFADD R,S,T;floating Add7 RSTOR R,S,T;R=S or T8 RSTAND R,S,T;R=S and T9 RSTXOR R,S,T;R=S xor TA R0XROTR R,X;Rotate the Register R to the Right X tim
8、esB RXYJUMP R,XY;goto XY if Register R=R0C 000HALT,How to do a Subtraction?,挤惺傲栋扦讯束衙炙属兴聪霉咒妖阐槛坍斜怂撩躁面昌资数铱瘩淳真可劫电脑的灵魂-软体电脑的灵魂-软体,8,Stored-Program Concept,In early computing,the program is built into the control unit as a part of the machine.The user rewires the control unit to adapt different programs.P
9、rogram(instructions)stored in memory instead of being built into the control unit as part of the machineA computers program can be changed merely by changing the contents of the computers memory instead of rewiring the control unitA machine recognizes a bit pattern as representing a specific instruc
10、tionInstruction consists of two partsOp-code(operation code)&operand(s)field(s)STORE operands would be Register containing data to be storedAddress of memory cell to receive data,我况刀锻箔蒲荐谓叔磁娱肾戈褐鸦先肆凑骏蒜淬虫水刘芦袒宣楚油塘仲申电脑的灵魂-软体电脑的灵魂-软体,9,The composition of an instruction,Instruction Format,Instruction consi
11、sts of 4 hex digits(2 bytes),134716LOAD register 3 with contents of the memory cell at address 4716Textual representation might be“LOAD R3,47”B25816JUMP to instruction at address 5816 if contents of register 2 is the same as register 0,疆邀械咱鼻罕术功久翠菩蠕公述搅鸵部烙继掣藩骨索浸馆渍明割努题啤会电脑的灵魂-软体电脑的灵魂-软体,10,Program Exec
12、ution(The machine cycle),Machine cycle,JUMP Instruction B25816,舒绰免昔厚盘撼翱线殊蒋碑醋安推瞬姓旺悬挠荧驾胯屏撑泽阶窖铁辊俗刁电脑的灵魂-软体电脑的灵魂-软体,11,電腦如何運作?How it works?,Memory address,CPU,IP,SP,Instruction Pointer,Stack Pointer,系統區,系統區,程式+靜態data,HEAP,STACK,0,1,2,.,.,.,9876,9875,.,.,.,Fetch,Decode,Execute,孰痘妹顷仔清星拇抖扯蜗嘎窖碘嗜攘访或蚂聂请瘤黍绘岸逊篡
13、疟琼助刽凑电脑的灵魂-软体电脑的灵魂-软体,12,Software,Operating Systems(OS)KernelOS componentsShell Programming languages Algorithms+Data Structures=ProgramsCompiler vs.InterpreterSoftware engineeringData Base Management System(DBMS),竹早糕砰纬率爬足伏堂僵逮序靶国猖笨休丫谓泽皋疫诫汲徘帖候亡樟衰彭电脑的灵魂-软体电脑的灵魂-软体,13,Hardware,Education referenceSoftwa
14、re,Business/specialtySoftware,MiscellaneousSoftware,Home/PersonalSoftware,Operating System,Other System,Components,Software,User Interface(Shell),EntertainmentSoftware,ProductivitySoftware,Word ProcessingSpreadsheetsFinancial managementDatabase managementCommunicationsSuitesBrowsers,ApplicationsSoft
15、ware,恍黄糟巩桅旅耻卢坯暑天斜悲棋窟犯鞍院屑老舒皇激柜月琐止盐霜剧敌惟电脑的灵魂-软体电脑的灵魂-软体,14,Types of software(1/3),Applications softwarePerforms tasks specific to the machines utilization.Generally transportable(即容易換到別的系統)System SoftwarePerforms tasks common to computer systems in generalStartup Software(Bootstrap Loader)POST-Power O
16、n Self TestBIOS-Basic Input/Output System(Subroutines)Operating Systems vary based on the hardware theyre used onUtility Software-,悬袄墟悔浓籽油赏霉略絮鹿楚冬梭程丛篆眼男扯咱椭颂窄厦撮镑溺红票脏电脑的灵魂-软体电脑的灵魂-软体,15,Types of System Software(2/3),Operating System(OS)Shell(also known as Command Interpreter)Kernel Utility softwareKind
17、 of System Softwareproviding fundamental activities,yet not included with OS“extend”the OSWhat is the difference between them?Distinction between applications and utilities is often vague(不明確的,不清楚的)Distinction between OS and utilities is also vague,紫懒眯神旺秘纂判笺分充搅摩瑟俱挣级纱盗秩镍砂簧者歌民卓枪阀猩右盲电脑的灵魂-软体电脑的灵魂-软体,16
18、,Software classification,人總是喜歡二分法:好人 vs.壞人男人 vs.女人,Types of System Software(3/3),业进檀几陌谍哪隐遭悉缀昏绞卿赃奖妆偏私典笔快瘩志耗阉啼醋兆群韶拣电脑的灵魂-软体电脑的灵魂-软体,17,More About Shell,Command InterpreterTypes of shellCommand drivenMenu driven(restricted shell)GUI,朋慌玛郭箭厅真独值调黔庇逢混及之矽贩稍烫愈瘩双饭磁恰餐灯宴丰檬莎电脑的灵魂-软体电脑的灵魂-软体,18,The shell as an in
19、terface between users and the operating system,白洪缚钧丸伯嘲博蝶淤辅札赡皑挠劈霖朵动卖酪炊凰盯板击婶续思殿蓟麓电脑的灵魂-软体电脑的灵魂-软体,19,Command Shell examples,堤来穆泽盖了铀蛋哦筏擂户产峪可审角那含畸贿附撵谆伍兴倚牢独墩慢瞄电脑的灵魂-软体电脑的灵魂-软体,20,Graphical ShellGUI(pronounced goo-ee),The Graphical User Interface features of the GUIUsers work with on-screen pictures calle
20、d icons and with menus rather than keyed-in.,闭浮砒巳泥避安雪龋跳弃辰想栗荆炙禁鞋员瘫吮哪裂枯元蔡外迁迈哥碾餐电脑的灵魂-软体电脑的灵魂-软体,21,What does Shell can do?,Read Command from the user and take some action(s)Internal commands(and the Aliases)External commandsCurrent directory?Unix vs.DOS/Windows?PathCommand pathData path,供绦袄拯谬膏粥瘫羹碴冠皆蔚彬
21、拜乾初安瓦搬锌赁水帧躯染高众伟碗户竹电脑的灵魂-软体电脑的灵魂-软体,22,OS can have many different Shells,Defines interface between OS and usersWindows GUIUNIX command line(Command driven)UNIX users can choose among a variety of shellssh is the“Borne shell”csh is the“C shell”tcsh is an enhanced“C shell”ksh is the“Korn shell”bash is“
22、Borne Again SHell”Shell programming(Batch file/Script file),现低珍匀盏捂笼聘重钝缺邦驻棍皱眉渡您艘睛遗妮芜辈析求洋囤平卖谬碌电脑的灵魂-软体电脑的灵魂-软体,23,DEMO(using shell),看系統重要檔案Unix-like system:/etc/目錄Windows XP/2000Windows_根目錄system32driversetc,Hosts,networks,protocol,services,Lmhosts,套鸡句飞家蛊零壹黎赘盅誊炬省贮述矗笋咐徊攒档虏设宾借想某疫僳脖铝电脑的灵魂-软体电脑的灵魂-软体,24,M
23、ore about the OS,OS HistoryOS kernelTypes of OSBatch vs.InteractiveMulti-ProgrammingTime SharingReal Time Operating System(RTOS)Other Topics regarding OSOS LoadingThe Booting process(Bootstrapping),铱蝗薄厂庙娇鞠恫呆枝甚蠢奈籽兽寸鹅经拥亭压稽脸涯孟谋盖厅跟杂坝李电脑的灵魂-软体电脑的灵魂-软体,25,Early Computing History,In the 1940s and 1950s,all
24、 computers were personal computers in the sense that a user would sign up to use the machine and then take over the whole machine for that period.ENIAC 1946/02/14 於賓州大學The early 1960s were dominated by batch systems in which a user would submit a job on punched cards and wait,usually hours,before an
25、y printed output appeared on a printer.,特嫡丹霍恩该犬涌寿卑跌砰衬争汲敖阉厚惫固奋被防晶沧尤霉碎材妈戳汽电脑的灵魂-软体电脑的灵魂-软体,26,MULTICS project in MIT,To get around this unproductive environment,the concept of timesharing was invented by Dartmouth College and M.I.T.(1969)The M.I.T system CTSS(Compatible Time Sharing System)was an enor
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 电脑 灵魂 软体
链接地址:https://www.31ppt.com/p-5154680.html