[LLVMdev] Python bindings for LLVM API

Vikram S. Adve vadve at cs.uiuc.edu
Thu Feb 24 09:12:46 PST 2005


Jarno,

This looks like it could be very valuable - thanks for making it  
available.  Just out of curiosity, do you have any specific uses in  
mind for which you created these bindings?

--Vikram
http://www.cs.uiuc.edu/~vadve
http://llvm.cs.uiuc.edu/

On Feb 23, 2005, at 5:21 PM, Jarno Seppänen wrote:

> Hi,
>
> I would like to share my experimental LLVM API Python bindings with  
> the LLVM
> enthusiasts.  I have created Boost.Python wrappers largely for the  
> VMCore
> interface and other selected interfaces (e.g. ExecutionEngine).  The
> bindings provide direct runtime access to the LLVM bytecode and JIT
> execution features from Python.
>
> The bindings are complete enough so that one can e.g. run the  
> Fibonacci JIT
> demo in Python (see fibonacci.py in the package).  Other than this, the
> bindings have seen very little testing: caveat emptor!
>
> Quick start:
> - make sure you have Python and Boost.Python installed
> - extract Python.tgz (attached) into $LLVM/lib/Python
> - cd $LLVM/lib/Python
> - make
> - export PYTHONPATH=$PYTHONPATH:$LLVM/Debug/bin
> - python fibonacci.py
>
> More details are provided in the README.txt within Python.tgz.
>
> BR, Jarno
>
> --  
> Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
> GMX bietet bis zu 100 FreeSMS/Monat:  
> http://www.gmx.net/de/go/ 
> mail<Python.tgz>_______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list