资源描述:
《计算机科学概论 答案 chapter02new》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ChapterTwoDATAMANIPULATIONChapterSummaryThischapterintroducestheroleofacomputer'sCPU.Itdescribesthemachinecycleandthevariousoperations(or,and,exclusiveor,add,shift,etc.)performedbyatypicalarithmetic/logicunit.Theconceptofamachinelanguageispresentedintermsofthesimpleyetrep
2、resentativemachinedescribedinAppendixCofthetext.ThechapteralsointroducessomealternativestothevonNeumannarchitecturesuchasmultiprocessormachinesandartificialneuralnetworks.Theoptionalsectionsinthischapterpresentamorethoroughdiscussionoftheinstructionsfoundinatypicalmachine
3、language(logicalandnumericaloperations,shifts,jumps,andI/Ocommunication),ashortexplanationofhowacomputercommunicateswithperipheraldevices,andalternativemachinedesigns.ThemachinelanguageinAppendixCinvolvesonlydirectandimmediateaddressing.However,indirectaddressingisintrodu
4、cedinthelastsection(PointersinMachineLanguage)ofChapter7afterthepointerconcepthasbeenpresentedinthecontextofdatastructures.Comments1.MuchofComment1regardingthepreviouschapterispertinentherealso.Thedevelopmentofskillsinthesubjectsofmachinearchitectureandmachinelanguageprog
5、rammingisnotrequiredlaterinthebook.Instead,whatoneneedsisanimageoftheCPU/mainmemoryinterface,anunderstandingofthemachinecycleandmachinelanguages,anappreciationofthedifferenceinspeedsofmechanicalmotioncomparedtoCPUactivities,andanexposuretothelimitedrepertoireofbitmanipula
6、tionsaCPUcanperform.2.Tomoststudentsatthisstagethetermsmillisecond,microsecond,nanosecond,andpicosecondmerelyrefertoextremelyshortandindistinguishableunitsoftime.Infact,mostwouldprobablyaccepttheincorrectstatementthatactivitieswithinacomputerareessentiallyinstantaneous.On
7、ceastudentofminewrotearecursiveroutineforevaluatingthedeterminantofamatrixinaninterpretedlanguageonatime-sharingsystem.Thestudenttriedtotesttheprogramusingan8by8matrix,butkeptterminatingtheprogramafteraminutebecause"itmustbeinaloop."Thisstudentleftwithanunderstandingofmic
8、rosecondsasrealunitsoftimethatcanaccumulateintosignificantperiods.3.Asubtlepointthatcanaddsignif