資源描述:
《內(nèi)存受限系統(tǒng)》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、ThinkingSmallTheProcessesforCreatingSmallMemorySoftware?2004CharlesWeir,JamesNoble.Abstract:Thispaperdescribessomeprocesspatternsforteamstofollowwhencreatingsoftwaretoruninlimitedmemory.Itisadraftversionofachaptertoaddtotheauthors’bookSmallMemorySoftware,andfollowsthestructureofotherchapters
2、inthatbook.MajorTechnique:ThinkingSmallA.k.aSmallmethodology,‘Real’programming.Howshouldyouapproachasmallsystem?·You’redevelopingasystemthatwillbememory-constrained.·Therearemanycompetingconstraintstosatisfy·Ifdifferentdeveloperstakedifferentviewsonwhichthingstooptimise,theywillproduceaninco
3、nsistentsystemthatsatisfiesnoneoftheconstraints.You'reworkingonaprojectandyoususpecttherewillberesourcelimitationsinthetargetsystem.Forexample,thedevelopersofthe‘Super-spy007’versionfortheStrap-it-Onwrist-mountedcomputerfaceasystemwithonly200KbofRAMand2MbROM.Howaretheytoadjudicatethedemandso
4、fthevoicerecognitionsoftware,thevocabulariesandthesoftware-basedradio,tomakeitasecretagent'sdreamtoy?ShouldtheystorethevocabulariesinROMtosaveRAMspace,orkeeptheminRAMtoallowthemtochangefromRussiantoArabiconthefly?What,inshort,isimportantintheirsystem,andwhatislessso?Inmanyprojectsit’sclearfr
5、omtheoutsetthatthedevelopmentteamwillhavetospendatleastsometimeandeffortsatisfyingthesystem’smemorylimitations.Youhavetocutyourcoattofityourcloth.Yetiftheteamjustspendslotsofeffortoptimisingeverythingtoworkinverylimitedmemory,they'llwastealotoftimeormaybeproduceaproductthatcouldhavebeenmuchb
6、etter.Worsestilltheproductmayfailtoworkatallbecausetheyhavebeenoptimisingthewrongthing.Forexample,anyofthefollowingfacilitiesmaybelimited:·Heap(RAM)spaceforthewholesystem·Heapspaceforindividualprocesses(ifthemaximumheapsizeofaprocessisfixed)·Processstacksize·Secondarystorageuse·ROMspace(forp
7、rogramsthatexecutefromROM)Optimisingoneofthesewilloftenbeatacostfromoneoftheothers.Inadditiontechniquesthatoptimisememoryusewilltendtocompromisetime-performance,usabilityorboth.Inanysystemthearchitectswillhavetomoderatethedemandsofdifferentcomponen