duncantl/Rllvm: Interface to llvm for dynamically compiling native code.
Version 0.7-0

This package is currently an interface to some of the functionality in the llvm toolkit for programmaticall constructing native code. This allows us to build "compilers" in R and use llvm's optmization and JIT techniques to improve the code we generate and then turn it into machine code. This is currently not a compiler. There are examples that illustrate how to generate code to create native functions that are equivalent to some simple R functions. The goal is to build on this and create a compiler, hopefully building on the framework that Luke Tierney has created in his compiler package (see http://www.cs.uiowa.edu/~luke/R/compiler/). This is in the RLLVCompile package. The speed up we achieve compiling R code in our examples illustrate that we can significantly outperform the R interpreter and also can outperform some of R's vectorized code by rearranging the computations, e.g. fusing loops, avoiding memory usage.

Getting started

Package details

AuthorDuncan Temple Lang, Vince Buffalo
MaintainerDuncan Temple Lang <[email protected]>
LicenseGPL-2
Version0.7-0
URL http://www.omegahat.net/Rllvm https://github.com/duncantl/Rllvm
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("devtools")
library(devtools)
install_github("duncantl/Rllvm")
duncantl/Rllvm documentation built on Sept. 19, 2017, 8:58 p.m.