[LLVMdev] Compile, link and run on the fly

Radovan Baranec rado.baranec at gmail.com
Thu Apr 15 10:18:09 PDT 2010


Hi,

I am working on my diploma thesis "Consideration of Virtual Machines  
Suitability for Packet Decoding". One of VMs I am testing is LLVM.  
Currently I have a filter written in LLVM IR which consist of 3 modules:  
filter, decoder and filter_rule. The last one is generated using my  
own-written compiler. I`d like to ask if there is a possibility to  
generate filter_rule, then link it with other two modules and run on the  
fly. Now I compile my own BPF-like minilanguage to IR, then translate it  
to bitcode using llvm-as, then link it with other two modules with  
llvm-link and finally run with lli. I don`t want to use makefile I want to  
do everything on the fly in my compiler. Thanks.

Radovan Baranec



More information about the llvm-dev mailing list