[LLVMdev] Compile, link and run on the fly
rnk at mit.edu
Thu Apr 15 12:19:28 PDT 2010
Is your compiler written in C++ or something that can interface with
it easily? If so, you should probably check out the JIT, and the
In particular, this bit is relevant to using a JIT:
It sounds like you're generating LLVM IL and dumping it to a .ll file
in your own compiler, so you'll probably have to just add some driver
code to your compiler that drives llvm-as, opt, llvm-link, and llc.
On Thu, Apr 15, 2010 at 1:18 PM, Radovan Baranec <rado.baranec at gmail.com> wrote:
> 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
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev