Re: Embedding Python at the OS level - build problems [success]

Discussion in 'Python' started by Phil Frost, May 26, 2004.

  1. Phil Frost

    Phil Frost Guest

    Success! They said it can't be done. "Python is too big", they said.
    "Too high level for an OS". And yet, it's done :) Here's a list of what
    I remember hacking:

    - manually set cross_compile=yes in the configure script, otherwise it
    expects that a program compiled with $CC will run, which it won't, for
    I'm cross compiling.

    - remove posixmodule from MODOBJS in Makefile. It wouldn't build, but
    probably would have with just a little tweaking. As of now the OS
    hasn't any filesystem (that's to be implemented in Python), so
    building modules doesn't make much sense anyway.

    - Build Parser/pgen using the host toolchain and copy it to the target
    build directory when the build system complains that it can't link it.

    That's it, I reckon. I now have a minimal OS that runs Python. If I add
    a filesystem, it will be something like preemptive, 32-bit PythonDOS.

    I'd like to thank those who have helped me, and those who have
    contributed to Python. This is some way cool stuff :)

    Phil Frost

    On Tue, May 25, 2004 at 08:34:14PM -0400, Phil Frost wrote:
    > Greetings all. I'm attempting to embed a python interpreter at a very
    > low level in an OS I am writing. Currently I'm stuck with build issues.
    > [big chop]
    Phil Frost, May 26, 2004
    1. Advertisements

  2. Ryan Paul

    Ryan Paul Guest

    On Wed, 26 May 2004 14:13:07 -0400, Phil Frost wrote:

    > Success! They said it can't be done. "Python is too big", they said.
    > "Too high level for an OS". And yet, it's done :)

    congratulations! truly a unique and innovative endeavor. I can't wait to
    see how you use it. I'm quite curious about how you have bound python to
    the operating system: i'm particularly interested in what specifically
    this lets you do, that you couldnt otherwise do on a platform where python
    is just a command-line accessible application. On your web site you say
    that your OS is very modular (this conjures up thoughts about
    microkernels) Projects like the Hurd facilitate construction of userspace
    kernel extensions; can your OS allow for something similar, but with
    Python? It would be neat to see a compact and efficient OS designed to
    natively support things like a python-extendable VFS, or kernel level net
    services that support scripted extensions.

    I've experimented with the hurd, qnx, and a few others, and all of them
    support graceful and efficient userspace kernel extension- something that
    linux's monolithic kernel regrettably precludes. I think that pluggable
    micro-kernels are a wonderful technology, and I love studying
    implementations- any information you can provide about the model of your
    OS, particularly the embedded python components, would be greatly
    appreciated. I havent learned assembly yet, so looking at your code
    probably wouldnt be very useful for me, and your web site doesnt have the
    kind of technical details i'm interested in. If you have some time, i'd
    really like to hear more about your project!

    Ryan Paul, May 27, 2004
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stephan Deibel
    Stephan Deibel
    Jan 18, 2004
  2. Phil Frost
    Donn Cave
    May 26, 2004
  3. pabbu
    Marc Boyer
    Nov 7, 2005
  4. Replies:
  5. Brent S. Elmer Ph.D.
    Brent S. Elmer Ph.D.
    Apr 29, 2014

Share This Page