Sie sind auf Seite 1von 3

6/26/2016

EmbeddedPythonPythonWiki

Titles Text

Search

EmbeddedPython
EmbeddedPython
FrontPage
RecentChanges
FindPage
HelpContents
EmbeddedPython

Page
ImmutablePage
Info
Attachments
MoreActions:

User
Login

EmbeddedPython
Pythoncanbeusedinembedded,smallorminimalhardwaredevices,dependingonhowlimitingthe
devicesactuallyare.

DevicescapableofrunningCPython
SomemodernembeddeddeviceshaveenoughmemoryandafastenoughCPUtorunatypicalLinux
basedenvironment,forexample,andrunningCPythononsuchdevicesismostlyamatterof
compilation(orcrosscompilation)andtuning.
Deviceswhichcouldbeconsideredas"embedded"bymodernstandardsandwhichcanruntuned
versionsofCPythonincludethefollowing:
Gumstix
RaspberryPi
BeagleBoneBlack
FIC

Neo1973and

NeoFreeRunner(

PythononOpenmoko)

TelitGSM/GPRSmodules(alsoavailableas
Modules)
https://wiki.python.org/moin/EmbeddedPython

AarLogicfamilyGPRS/GPSQUADBand

1/3

6/26/2016

EmbeddedPythonPythonWiki

SeealsoPythonForArmLinuxandOpenEmbedded.

WorktoimproveCPythonforembeddedapplications
VariouseffortshavebeenmadetomakeCPythonmoreusableforembeddedapplications:
PatchesintheOpenEmbeddedrepository
Crosscompilationissues: 1006238, 5404, 3871
Generalinterpreterstartupcosts:SpeedUpInterpreterStartup
Fileaccessoverheadonstartup: Improvinginterpreterstartupspeed, Tonsofstats/opensto
nonexistingfilesincreasesPython'sstartuponloadedNFSservers, Startuptime
Importrelatedcosts:

__file__

Usingalauncherprocesswhere"expensive"modulesarerequired:
launcher

Introducingpython

ReducedorreworkedPythonimplementations
SomedevicesmaybemorerestrictiveinthatthetypicalmemoryfootprintofCPythonmayexceedthe
amountofmemoryavailableonthedevice.Insuchcases,areengineeredoradaptedversionof
CPython,perhapseventothepointwhereitcanbeconsideredanewimplementationofPython,might
beappropriate.
Examplesofsuchimplementationsincludethefollowing:
PyMite
TinyPython
ZerynthformerlyViper
Ontheotherhand,onecanstartwithafullbuild,andsimplyremoveunneededmodules,e.g.,Tkinter,
etc.,torealizeareducedsizePythonwithlittleeffort.

Pythonbasedtoolsfordevelopingembeddedapplications
SometimestheembeddedenvironmentisjusttoorestrictivetosupportaPythonvirtualmachine.In
suchcases,variousPythontoolscanbeemployedforprototyping,withtheeventualapplicationor
systemcodebeinggeneratedanddeployedonthedevice.
Toolsthatsupportthiskindofdevelopmentincludethefollowing:
MyHDL
WhatOS

EmbeddedPython(lastedited2016050309:24:52byDanieleMazzei)

MoinMoinPowered
PythonPowered
GPLlicensed
https://wiki.python.org/moin/EmbeddedPython

2/3

6/26/2016

EmbeddedPythonPythonWiki

ValidHTML4.01
Unabletoeditthepage?SeetheFrontPageforinstructions.

https://wiki.python.org/moin/EmbeddedPython

3/3