User Tools

Site Tools


ARAnyM Development

The process

  1. Get the source code
  2. Configure
  3. Edit the source code
  4. Build the binary
  5. Run it
  6. Debug it if it doesn't run
  7. Document it if it runs fine
  8. Release it

Note: steps 3-6 are to be repeated almost endlessly until you're satisfied with the result.

Getting the source code

ARAnyM as an Open-source Software makes its source code freely available through several “channels”:

  • CVS (bleeding edge, unstable, might not even compile)
  • nightly builds (actually hourly CVS snapshots)
  • released source code archives (will compile, should be stable for running)

See for more information.

Note: if you fetch the source code from CVS you must run ./ in the top-level ARAnyM folder to create the configure script.

Configuring the project

Editing the source code

For editing ARAnyM's C++ source code you can use either your favorite plain text editor (Editor_war) or an IDE.

Recently I felt like I needed to improve my editing experience so I started looking around for other choices. In particular I have been missing a quick and easy way of switching between declaration and definition of an object, a way of showing who calls what and where i.e. references and call stack, perhaps even IntelliSense. What I have found so far is documented below.


I myself have been using Vi for editing everything since I first met it on SINIX in 1991, then switched to its improved variant Elvis and after its development stalled in 2003 I switched to the most iMproved VI clone: VIM. One of the major advantages of using such a great editor is that it's available on basically all platforms (I remember myself porting the Elvis to MiNT) so you can use it anywhere.

The following are just some notes I have collected when I realized that the IDEs are not that perfect :-)


Tried a very old Anjuta v1.2.4a (as is in Debian Etch).

Step-by-step guide for importing ARAnyM project (existing on your disk) into Anjuta:

  1. click File → Import Project…
  2. [Browse] to select top level directory of ARAnyM, click [>Forward]
  3. Project Type: select “Generic/Terminal project”, click [>Forward]
  4. Basic Information: fill in “Project Target” (aranym), select “Programming language” → C++, click [>Forward]
  5. Project Description: fill in something, click [>Forward]
  6. Additional Options: click [>Forward]
  7. Confirm: click [Apply]
  • “Build → Autogenerate” will call
  • “Build → Configure” will call configure (you can specify additional parameters like –enable-fullmmu)
  • “Build → Build” will call make
  • “Build → Execute” will run aranym

Eclipse + CDT

Tried Eclipse v3.3.1.1 with CDT 4.0.1 (the Europa release). Installed also autotools plugin v from Red Hat available at

Step-by-step guide for importing ARAnyM project to Eclipse:

  1. click File → Import… in the main Eclipse menu
  2. CVS → Projects from CVS, click [Next>]
  3. Checkout Project from CVS repository: select “Create a new repository location”, click [Next>]
  4. Enter Repository Location Information: fill in “Host” (, “Repository Path” (/var/repos), “User”, “Password”, “Connection type” (pserver), click [Next>]
  5. Select module: fill in “Use specified module name” (aranym), click [Next>]
  6. Check Out As: select “Check out as a project configured using the New Project Wizard”, click [Next>]
  7. Select Tag: HEAD, click [Finish]
  8. New Project - Select a wizard: C++ → GNU C++ Autotools Project, click [Next>]
  9. Autotools C++ Project: fill in Project Name (aranym), click [Finish]

Sun Studio

I plan on trying out the recently released Sun Studio 12. They say it is pretty good (compared to previous version).

Compiling and linking

If not using any IDE then type the following command on your command prompt while you're in the top-level ARAnyM folder:


For SMP (dual cores) try the following variant for faster compilation:

make -j3

If VI/Elvis/VIM is started from the top-level folder then you can also type the following in the editor directly:


To build an universal binary on Mac OS X for PowerPC and Intel machines, there is a separarte Makefile below src/Unix/darwin/. It also takes care about, as each architecture requires a separarte run. So if you're in the top-level ARAnyM folder do:

cd src/Unix/darwin/

If you're not interested in an universal binary but just want a binary for your machine, from the top-level folder as usual do a simple:



The following command typed in the top level folder in a bash shell will start ARAnyM


A variant for MS-Windows is clicking on the aranym.exe with your left mouse's button.

Try some command line options, for example

./aranym -N

this way it will not steal (grab) your mouse and keyboard so if it hangs you can switch to another window and kill it (or attach the debugger and debug it).


I don't debug much so someone else will have to fill the void here.



Packaging and releasing

I use my own script tools/export. Rough, but does its job fine.

Uploading to, writing release notes, announcing on, and elsewhere is then a manual process.

development.txt · Last modified: 2008/01/08 23:56 by stefanq