欢迎来到天天文库
浏览记录
ID:40886751
大小:15.48 KB
页数:6页
时间:2019-08-09
《计算机组成作业(题)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、1.ImmediatelyaftertheCPUexecutesaninstructionthatisneitherabranchnorajumpinstruction,theprogramcounter(a)remainsunchanged(b)isincrementedtopointtothefollowinginstruction(c)isincrementedbyone(d)hasavaluethatcannotbedeterminedwithoutfurtherinformation2.Theprogramcountercontains(a)thenumberoftim
2、esaprogramhasbeenexecuted(b)theaddressoftheCPUinstructionthatisabouttobeexecuted(c)theamountofmemoryaprogramiscurrentlyusing(d)thenumberofCPUinstructionsaprogramhasexecutedsofar3.Inonecomputer,thebyteswithaddressesA,A+1,A+2andA+3containtheinteger256,andthevariabledeclaredwithint*a;hasthevalue
3、A.Inadifferentcomputer,thebyteswithaddressesB,B+1,B+2andB+3alsocontaintheinteger256,andthevariabledeclaredwithint*bhasthevalueB.Whichofthefollowingarenecessarilytrue?I.ThecontentsofA+1areequaltothecontentsofB+1.II.ThecontentsofA+1areequaltothecontentsofB+2.III.*a==*b(a)Ionly(b)IIIonly(c)IIand
4、IIIonly(d)IandIIIonly4.Ajumpinstruction(a)changestheprogramcounteronlyifitsoperandisequaltozero(b)changesapointertopointtothenextelementofanarray(c)increasestheprogramcounter(d)unconditionallysetstheprogramcountertoitsoperand5.Abranchinstruction(a)setstheprogramcountertooneofmanypossiblevalue
5、s(b)unconditionallysetstheprogramcountertoitsoperand(c)setstheprogramcountertooneoftwopossiblevalues(d)increasestheprogramcounterbyafixedamount6.ACPUregisterisawordofCPUmemorythat(a)recordstheresultsofperiodicCPUdiagnostics(b)isautomaticallyloadedwhenaCPUinstructionreferstoawordofnormalmemory
6、(c)housesacriticalvariableforthedurationoftheexecutionofaprogram(d)isexplicitlyloadedandunloadedfromnormalmemorybycompiler-generatedinstructions7.Whichofthefollowingisagoodreason(aregoodreasons)toequiptheCPUwithsmallamountsoffastmemory?I.TomakethedesignofthecompilersimplerII.TomakesomeCPUinst
7、ructionssmallerIII.TomakesomeCPUinstructionsfaster(a)IIIonly(b)I,II,andIII(c)IIandIIIonly(d)IIonly8.Whichofthefollowingnumericaloperationsismostlikelytoleadtolossofprecision?(a)Integeraddition(b)Floating-pointmultiplication(c)Floating-pointad
此文档下载收益归作者所有