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
cdto 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-livesvn co http://llvm.org/svn/llvm-project/llvm/trunk llvmcd llvm/toolssvn co http://llvm.org/svn/llvm-project/cfe/trunk clangcd ../projectssvn co http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rtcd ..configuremake
- Download
libantlr3c-3.4.tar.gzfrom http://www.antlr.org/download/C (make sure you download the correct version) - Extract the files to the directoy of your choice.
antlr3c-dirwill refer to this directory in the following. cd antlr3c-dir./configue./configure --enable-64biton 64-bit systemsmake
cd where-you-want-cpputils-to-livegit clone git://github.com/Haensel2000/cpputils.git cpputilscd cpputils- scons
cd where-you-want-juli-to-livegit clone git://github.com/Haensel2000/juli.git julicd juli/compilerscons 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!