Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>One possible approach is to build your own <a href="http://en.wikipedia.org/wiki/Stack_machine" rel="nofollow">stack machine</a> in software to interpret and execute Python <a href="http://docs.python.org/release/2.5.2/lib/bytecodes.html" rel="nofollow">byte code</a> directly. Certainly not a porting job and quite labor-intensive to implement, but a self-contained Python byte code stack processor built for your embedded system gets you around needing an operating system.</p> <p>Another approach is writing your own low level executive (one step below a general purpose OS) that contains the bare minimum in services that a core Python interpreter port requires. I am not certain if this is more or less labor intensive than building a stack processor. </p> <p>I am not recommending either of these approaches - personally, I like Charlie Martin's Minix 3 approach best since it is a balanced requirements compromise. On the other hand, what I suggest might be interesting if your project absolutely requires Python without an operating system <I>and</I> if the project has an excellent time and money budget.</p> <p><strong>Update 5 Mar 2012</strong>: Given a strict adherence to your Python/No OS requirements, another possibility of a path to a solution may lie in using an OS-less Java VM (e.g., <a href="http://www.jnode.org/" rel="nofollow">jnode</a>, currently in beta) and use <a href="http://en.wikipedia.org/wiki/Jython" rel="nofollow">Jython</a> to create Java byte code from Python. Certainly not an ideal off-the-shelf solution, and it does seem to meet an OS-less Python requirement.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload