gambas-source-code/gb.jit
Benoît Minisini 8fff3e69bd [GB.JIT]
* NEW: Debugging information is printed as soon as the GB_JIT environmental 
  variable is not null.
* NEW: If LLVM version is lesser than 3.1, a warning message is printed. 
  Normally, a crash should occur just after. :-)


git-svn-id: svn://localhost/gambas/trunk@4779 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-25 22:24:13 +00:00
..
src [GB.JIT] 2012-05-25 22:24:13 +00:00
acinclude.m4
AUTHORS
ChangeLog
component.am
configure.ac [GB.JIT] 2012-05-25 15:54:00 +00:00
COPYING
gambas.h
gb_common.h
INSTALL
m4
Makefile.am
missing
NEWS
README [CONFIGURATION] 2012-05-23 21:35:58 +00:00
reconf

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

You might need to edit the configure.ac file in order to set the llvm
location settings appropriate, followed by ./reconf.

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.