GSoC/GCI Archive
Google Code-in 2011 Parrot Foundation

Port --runtime-prefix option to Winxed

completed by: Pawel Nowak

mentors: Andrew Whitworth

Task Description

In frontend/parrot2/main.c there is a TODO note about handling of the --runtime-prefix commandline option. We want to move handling of it from frontend/parrot2/main.c to frontend/parrot2/prt0.winxed.

Steps To Complete This Task

  1. Create a fork of parrot.git on
  2. Remove processing of the --runtime-prefix option from frontend/parrot2/main.c. Instead, add the option to the list of Parrot arguments (pargs).
  3. Add logic to handle the option to frontend/parrot2/prt0.winxed. For how to do this, see the interpinfo_s_i opcode, and the function interpinfo_s in src/interp/inter_misc.c. Ask for one of the parrot developers if you need help using this opcode from Winxed.
  4. Build Parrot and run all tests. Demonstrate that the --runtime-prefix option still functions as normal.
  5. Create a Github pull request (button on the upper right of your fork) to have your changes incorporated into the master repository


  1. Parsing arguments in Winxed is easier and actually may have better performance in some cases than handling options from C. Less C code is always good, and winxed code is easier to maintain.


  1. C Programming Language
  2. Winxed programming language or similar (C++, C#, Java, JavaScript)

Additional Links