2012-05-23 21:26:15 +02:00
|
|
|
You should use the latest version of LLVM. To check it out, run:
|
|
|
|
|
|
|
|
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
|
|
|
|
cd llvm
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
../configure --prefix=/usr --enable-optimized --enable-jit --enable-shared
|
|
|
|
make -j4
|
|
|
|
sudo make install
|
|
|
|
|
2012-05-23 23:35:58 +02:00
|
|
|
You might need to edit the configure.ac file in order to set the llvm
|
|
|
|
location settings appropriate, followed by ./reconf.
|
2012-05-23 21:26:15 +02:00
|
|
|
|
2012-05-23 23:35:58 +02:00
|
|
|
To enable the JIT for all functions in a Gambas class, add the word "Fast"
|
|
|
|
on a separate line at the top of the class file. The functions will then be
|
|
|
|
JIT compiled to native machine code, instead of letting the interpreter to
|
|
|
|
run it, if gb.jit is available.
|