gambas-source-code/gb.jit.llvm
Benoît Minisini 415de7b257 Update configuration files to autoconf 2.71.
[CONFIGURATION]
* NEW: Update configuration files to autoconf 2.71.
2022-09-03 13:24:51 +02:00
..
src Remove boolean definitions except in gb_common.h 2018-10-15 18:48:01 +02:00
acinclude.m4 Start working on the new jit system. 2018-05-17 01:13:56 +02:00
AUTHORS Start working on the new jit system. 2018-05-17 01:13:56 +02:00
ChangeLog Start working on the new jit system. 2018-05-17 01:13:56 +02:00
component.am Start working on the new jit system. 2018-05-17 01:13:56 +02:00
configure.ac Update configuration files to autoconf 2.71. 2022-09-03 13:24:51 +02:00
COPYING Start working on the new jit system. 2018-05-17 01:13:56 +02:00
gambas.h Start working on the new jit system. 2018-05-17 01:13:56 +02:00
gb_common.h Start working on the new jit system. 2018-05-17 01:13:56 +02:00
INSTALL Start working on the new jit system. 2018-05-17 01:13:56 +02:00
m4 Start working on the new jit system. 2018-05-17 01:13:56 +02:00
Makefile.am Start working on the new jit system. 2018-05-17 01:13:56 +02:00
NEWS Start working on the new jit system. 2018-05-17 01:13:56 +02:00
README Start working on the new jit system. 2018-05-17 01:13:56 +02:00
reconf Start working on the new jit system. 2018-05-17 01:13:56 +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

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.