wiki:Projects/Parrot_VM

Version 1 (modified by ChrisJohns, on Nov 4, 2009 at 12:17:59 PM) (diff)

Add some Parrot doco. Needs lots more work.

Parrot VM

<blockquote>"Parrot is a virtual machine designed to efficiently compile and execute bytecode for dynamic languages. Parrot currently hosts a variety of language implementations in various stages of completion, including Tcl, Javascript, Ruby, Lua, Scheme, PHP, Python, Perl 6, APL, and a .NET bytecode translator. Parrot is not about parrots, though we are rather fond of them for obvious reasons."</blockquote>

The parrot web site is http://www.parrot.org/. It is an excellent project and this work could only have been done with the help of the Parrot developers. Thanks to everyone on #parrot IRC.

Parrot runs on RTEMS. Jonathon Leto (a.k.a dukeleto) blogged the first run of PIR code in Parrot on RTEMS [here | http://leto.net/dukeleto.pl/2009/11/realtime-embedded-parrots.html].

The remainder of this RTEMS Wiki page documents how to get Parrot to run on RTEMS using the PC BSP. The port is a work in progress with the final aim being the building of Parrot from their released sources.

RTEMS Parrot Sources

The source for Parrot on RTEMS can be found in my work area on the ftp server at http://www.rtems.org/ftp/pub/rtems/people/chrisj/parrot.

The snapshots are dates with the latest date being the latest snapshot. Ask on the RTEMS user mailing list if you are uncertain about the snapshots.

I provide a BSP snapshot that requires you download the source and I will also provide a tarball of the patched sources I used.

You need to install the RTEMS Tools for the i386 target. You also need to get a current copy of RTEMS (update this) and build the PC BSP (add instructions).

You can run Parrot on RTEMS in the Qemu PC simulator.

You will need to download the 1.7.0 version of Parrot from here ftp://ftp.parrot.org/pub/parrot/releases/devel/1.7.0/.

RTEMS PC BSP

Steps to building the PC BSP:

# Obtain the latest snapshot of RTEMS and unpack. # Bootstrap the source # Configure the PC BSP # Make and install

RTEMS Parrot Building

Steps to building Parrot.

# Unpack the Parrot BSP package. # Download the Parrot 1.7.0 and place in the PC586 directory. # Run the parrot-rtems.sh script.

..... more coming.