README v. 0.0.4
This procedure was tested only on Ubuntu 12.04 so far. Please report any experiences with other systems.
The project and some dependencies require the scons build system. It can be installed as follows:
- Download (Zip) scons from http://www.scons.org/
- Extract the archive
cd
to the scons directorysudo python setup.py install
In order to be able to compile the project, some dependencies need to be installed:
cd where-you-want-llvm-to-live
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../projects
svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt
cd ..
configure
make
- Download
libantlr3c-3.4.tar.gz
from http://www.antlr.org/download/C (make sure you download the correct version) - Extract the files to the directoy of your choice.
antlr3c-dir
will refer to this directory in the following. cd antlr3c-dir
./configue
./configure --enable-64bit
on 64-bit systemsmake
cd where-you-want-cpputils-to-live
git clone git://github.com/Haensel2000/cpputils.git cpputils
cd cpputils
- scons
cd where-you-want-juli-to-live
git clone git://github.com/Haensel2000/juli.git juli
cd juli/compiler
scons llvm=path-to-llvm llvm-build=path-to-llvm/Debug+Asserts cpputils=path-to-cpputils antlr3c=path-to-antlr3c
- Add
path-to-juli/compiler/build/
to your PATH cd path-to-juli/builder
To compile the linked_list test sample:
java -cp bin/:lib/commons-cli-1.2.jar juli.builder.Builder -o test.out -b ../samples/build/ ../samples/src/test.jl ../samples/src/linked_list.jl
You can write your own code and compile it the same way. For a more thorough introduction please refer to the wiki at https://github.com/Haensel2000/juli/wiki
Have fun!