資源描述:
《Design and Implementation of an Embedded Python Run-Time System嵌入式Python運行時系統(tǒng)的設計與實現(xiàn)》由會員上傳分享,免費在線閱讀,更多相關內容在學術論文-天天文庫。
1、DesignandImplementationofanEmbeddedPythonRun-TimeSystemThomasW.BarrRebeccaSmithScottRixnerRiceUniversityftwb,rjs,rixnerg@rice.eduAbstractAsthecapabilitiesofembeddedsystemsincrease,thissituationisbecominguntenable.ProgrammingmustbeThispaperpresentsthedesignandimplementationofsi
2、mpli?edtomeetthedemandforincreasinglycomplexacompleteembeddedPythonrun-timesystemforthemicrocontrollerapplications.ARMCortex-M3microcontroller.TheOwlembeddedThispaperpresentsonemechanismfordoingso:Pythonrun-timesystemintroducesseveralkeyinnova-anef?cientembeddedPythonrun-times
3、ystemnamedtions,includingatoolchainthatiscapableofproducingOwl.TheOwlsystemisacompletePythondevelopmentrelocatablememoryimagesthatcanbeutilizeddirectlytoolchainandrun-timesystemformicrocontrollersthatbytherun-timesystemandanovelforeignfunctionin-donothaveenoughresourcestorunar
4、ealoperatingsys-terfacethatenablestheef?cientintegrationofnativeCtem,butarestillcapableofrunningsophisticatedsoft-codewithPython.waresystems.ThesemicrocontrollerstypicallyoperateTheOwlsystemdemonstratesthatitispracticaltorunat50–100MHz,have64–128KBofSRAM,andhavehigh-levellangu
5、agesonembeddedmicrocontrollers.In-upto512KBofon-chip?ash.Oneexampleofsuchstrumentationwithinthesystemhasledtoanoverallsys-amicrocontrolleristheARMCortex-M3.ARMpre-temdesignthatenablesPythoncodetobeexecutedwithdictsthatin2015,themarketfortheseCortex-Mclasslowmemoryandspeedoverh
6、eads.Furthermore,thispa-microcontrollerswillbearound18billionunits[7].InperpresentsanevaluationofanautonomousRCcarthatcontrast,Gartner,Inc.predictsthat404millionx86pro-usesacontrollerwrittenentirelyinPython.Thisdemon-cessorswillshipin2012[9].stratestheeasewithwhichcomplexembed
7、dedsoftwareOwlisacompletesystemdesignedforARMCortex-systemscanbebuiltusingtheOwlinfrastructure.Mmicrocontrollersthatincludesaninteractivedevelop-mentenvironment,asetofpro?lers,andaninterpreter.It1Introductionisderivedfromportionsofseveralopen-sourceprojects,includingCPythonand
8、Baobab.Mostnotably,thecoreForeverymicroprocessorinatraditiona