MAML -- Multi-Agent Modeling Language

[ Initiative ][ Introduction ][ Overview ][ Supported Swarm versions ][ Compiler Download Page ][ Compiler Usage Guide ][ Tutorial ][ Course Outline ][ Examples ][ Reference Manual ][ Papers ][ Comments for Swarmites ][ Technical Manual ] ][ About ]

The MAML Compiler (XMC) Download Page


The MAML language and its compiler are in pre-beta stage, and are under evaluation. The compiler is freely downloadable for evaluation purposes. Later the system will be put under GNU license. All of our employees are trying hard to make them usable, however we do not accept any responsibility for the damages that may result from errors in the code or which are in any way related to the software.

If you notice any errors, please notify us.

System Requirements

The MAML compiler was written in ANSI C using the gcc under Linux. It was tested in this environment, but may run on other platforms too. However, it is likely that the Makefile for building the compiler and the one generated by the compiler for the models will only work under UN*X systems. You should have Swarm installed on your system to be able to use our software (for the supported versions see this page).
The MAML compiler also works with the NT version of Swarm under the Cygnus UNIX emulation.


The current version is: v0.03.2.1330 (Support for Swarm 2.1.1)

The compiler can be downloaded in different formats: find the one which is most convenient for you.

Executable for Linux It should work for any x86 PC with Linux.
Executable for Windows & Cygnus B19 (only the previous (1216) version of xmc is available!) It worked with Windows NT 4.0 + Cygnus B19 on an x86 PC
Executable for Windows & Cygnus B20 It worked with Windows NT 4.0 + Cygnus B20 on an x86 PC
Source in tar.gz, in tgz, and in zip format. This should be compiled with gcc. For details go here.
Source in .tar This is not compressed, so it lasts longer to download. But it's easier to install... :)

Use your browser's 'Save this link' function to download and save the chosen file. With most of the browsers this function is available on the pop-up menu that comes up using the right mouse button over a link.

To download an earlier version of the compiler go to this page.

Installation notes

If you downloaded the source code for xmc you have to compile it. If you got the compressed (tar.gz) file, you have to uncompress it first:

gzip -d filename.tar.gz

Extract the files from the tar archieve when uncompression is done, or if you downloaded the uncompressed (tar) version.

tar -xvf filename.tar

Users of gnu tar can omit the gzip step and use the z flag to extract the tar.gz file directly:

tar -xzvf filename.tar.gz

Use the make xmc command to build the compiler. This will produce an executable file called xmc, which is the compiler itself. Having this, you are ready to create your models. Just make sure xmc is in your PATH whenever you want to compile. To get a short overview on the use of the compiler, run it without any parameters.

A brief usage guide

To compile your MAML code into a Swarm application you must use the xmc command. The usual syntax for this is:

xmc NameOfYourFile

(for further details of the compiler, see the instructions given when you run it without parameters, or see this page). If your code is correct, the command above generates the source code of a Swarm application in the MAML_target/ subdirectory (note that this is the default place, but you can define some other location as well). This generated source code usually constitutes several files.

To make an executable, you have to follow the instructions xmc gives after generating the Swarm code. These instructions are also detailed below:

First go to the target directory using the command

cd MAML_target

(Note that if you have changed the target directory, you must use the appropriate target directory name.) After this, issue the

make it

command. This, if successful, produces your executable with the name run.

If the executable is generated, then you are ready to try it out. This can be done by using the



copyright © 1999 agent-lab
Send comments to