《名词解释》PPT课件_第1页
《名词解释》PPT课件_第2页
《名词解释》PPT课件_第3页
《名词解释》PPT课件_第4页
《名词解释》PPT课件_第5页
已阅读5页,还剩25页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

CSE410:ComputerSystems,Instructor:DavidEly(elycs)OfficeHours:Sieg226DTAs:JiwonKim(jwkimcs)andTaoXie(taoxiecs)OfficeHours:JiwonMF2-3(Sieg226A),TaoM1:30-2:30andTh12-1(Sieg226A)Webpage:/410MailingList:cse410cs,Administrative,TextbooksArchitecturecomponent:ComputerOrganizationandDesign:TheHardware/SoftwareInterface,2ndedition.HennessyandPatterson.OperatingSystems:DesignAndImplementation,SecondEditionbyAndrewS.TanenbaumandAlbertS.WoodhullAnonymousfeedback,MoreAdministrative,Schedule(onwebpage):weeks1+2:Intro,MIPSassemblyweek3+4:Speedingthingsup(pipelining,thememoryhierarchy)Midterm:Monday,October30thweeks5-10:Operatingsystemsweek11:Wrapup,reviewFinal:Wednesday,December13th,8:30am,YetMoreAdministrative,Grading9Homeworks:40%(droplowest)Midterm:25%Final:35%HomeworkpolicydueatthebeginningofclassonWednesdaynolateworkacceptedpreferablytyped,neatlywrittenisacceptablehighlevelcollaborationonly(writenamesofcollaboratorsonyourassignments)CheatingDontdoit,9/25:LectureTopics,AdministrativestuffAnoverviewofcomputerarchitectureOrganizationvs.architectureLevelsofabstractionThehierarchyofcomputerlanguagesSomeexamplearchitecturesAnintroductiontoMIPS,ArchitectureOverview,Howdoyoutalktoacomputer?Whatdocomputershaveinthem?Howdocomputersexecuteprograms?Howcanwespeedupexecution?Whataretodayshottopicsinarchitecture?,Computerese,Bits=binarydigitsInstruction=setofbitsformingacommandPeopleusedtowritethesebyhand.,0,1,0,0,0,0,0,0,0,1,1,1,1,1,01110101110101001101000110010110,MachineLanguageisTedious,0110100011100110011000110101010101101010110101010101011010100010100001111101010001010100101010101000010010101110010101010100110101010101000101010110101000101010101010100010101011101010101010010101001000000101010100100101010101011100001010100010101001010,WritingthisishardDebuggingthisisimpossible,Solution#1:Assembly,Assemblylanguageisjustlikemachinelanguage,butmorecomfortableforhumans,becomes,addA,B,01110101110101001101000110010110,AssemblyisAlsoTedious,EachlinecorrespondstooneinstructionProcedurecallisapainForcestheprogrammertothinklikethecomputer,subu$sp,$sp,32sw$ra,20($sp)sw$fp,16($sp)addu$fp,$sp,28li$a0,10jalfactla$a0,$LCmove$a1,$v0jalprintflw$ra,20($sp)lw$fp,16($sp)addu$sp,$sp,32,Sol.#2:HighLevelLanguages,ProgrammercanthinkmorenaturallyDifferentlanguagesfordifferentusesPortabilityEnablesoftwarereuse(libraries),TowerofBabel,Cprogram,assemblylanguage,machinelanguage,Ccompiler,assembler,for(i=0;iN;i+)Ai+;,lw$t0,1200($t1)add$t0,$s2,$t0sw$t0,1200($t1),001011011010110011010101110101010101,Organizationvs.Architecture,Architecture:interfacebetweenhardwareandsoftwaree.g.theinstructionset,registers,howtoaccessmemoryOrganization:componentsandconnectionse.g.how“mult”isimplementedManyorganizationsforonearchitectureIntelx86,Pentium,PentiumPro,ComputerOrganization,thechip,systembus,level2cache,mainmemory,input/output,level1cache,registers,functionalunits,control,PC,ComponentsofComputers,Theprocessor,orthechip,includes:Functionalunits:logictomanipulatebitsControl:logictocontrolthemanipulationRegistersandProgramCounter(PC)FirstlevelcacheSecondlevelcacheMemoryOtherdevicesforinputandoutput:disks,etc.,InstructionSetArchitecture(ISA),AllofthespecificationsnecessarytoprogramthemachineWhatinstructionsdoesthemachineunderstand?Howdotheinstructionsneedtobeformattedintobits?Howmanyregisters?Howbigismemory?Howismemoryaddressed?ThisshouldbecomeclearerwithMIPS,ArchitectureFamilies,IBM360,370,etc.IBMPowerPC(601,603,etc.)DECPDP-11,VAXIntelx86(80286,80386,80486,Pentium,etc.)Motorola680 x0MIPSRx000,SGISunSparcDecAlpha(21x64),TheBiggerPicture,hardware,OS,machineprogram,highlevellanguageprogram,ISAinterface(e.g.MIPS,Alpha,80 x86),OSinterface(systemcalls),Perface(C,Java),InstructionSets,Anassemblylanguagehasa“vocabulary”ofcommandsadd,subtract,shift,branch,etc.ThesetofcommandsformstheinstructionsetComputerarchitectsargueaboutwhatshouldbeincluded,RISCvs.CISC,Someinstructionsetsarelargeandhavecomplexinstructions:CISCComplexInstructionSetComputerOthersetsaresmallandhaveonlysimpleinstructions:RISCReducedInstructionSetComputerMoreonthisafteryouveseenMIPS,MIPS,TheInstructionSetArchitecture(ISA)wellbestudyingARISCarchitecturePopularforreallifeNEC,Nintendo,SGI,SonyPopularforclasseslikethisonereasonablysimpleandelegantabout100instructionstotal,Operations,Arithmeticadd,sub,mult,divDatatransferlw,sw,lb,sbConditionalbranchbeq,bne,sltJumpj,jr,jal,ArithmeticOperations,Desiredresult:,MIPSassembly:,a=b+c,adda,b,c,Conventions:AlwaysthreevariablesResultgoesintofirstvariableHowdoyouaddupmorethantwovariables?,Desiredresult:,MIPSassembly:,a=b+c+d,?,MoreThanTwoVariables,FormmorecomplexoperationsbycombiningsimpleonesYoucanreusethesamevariableinmorethanoneplace,Desiredresult:,MIPSassembly:,adda,b,cadda,a,d,a=(b+c)+d,AComplexArithmeticExample,Desiredresult:,MIPSassembly:,f=(g+h)-(i+j),Registers,Variablesareahigh-levellanguageconceptInassembly,weuseregistersAspecialplaceonthechipthatcanholda(32-bit)wordThereareonlyafewofthemTheyareveryfasttoaccess,HowManyRegisters?,MIPShas32registersIntelx86hasonly4or8general-purposeregistersWhydoesthenumbermatter?Anydatayouusehas

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论