Clone wiki

SCons_X10 / Home


This is SCons_X10 a SCons tool for compiling and linking X10 source code. X10 is a parallel programming language being developed by IBM in association with others.

Table of Contents:


SCons comes with many tools as standard, C, C++, Fortran, D, LaTeX, etc. However there are many languages for which there is no support "out of the box". X10 is one of those languages. This tool is therefore an "add in" to provide SCons support for building applications written in X10.


You will need to clone this Mercurial repository and then possibly additionally provide some links. SCons has a number of ways of adding new tools depending on whether you want them available only for a single project, for all the projects of an individual user, or for all projects on a given system. The location to which the clone should be made depends on which of these situations you want to support.

Whichever location you choose the command will be:

$ hg clone x10

the name of the target directory will become the name of the tool for your situation. In this case "x10" is the target directory name and hence "x10" will be the name of the tool.


Currently there are only two builders provided by the tool "X10Program" and "X10Classes", this is because the tool is in the very first stages of being prototyped.

The X10Program builder uses the X10 C++ toolchain to create what is essentially a native executable, though it needs some support to actually execute -- see the X10 website. The X10Classes builder uses the X10 Java toolchain to create classes that can be run using any JVM realization.

Here is an example of usage:

e = Environment ( tools = [ 'x10' ] )
e.X10Program ( 'helloWorld.x10' )
e.X10Classes ( 'helloWorld.x10' )