[LLVMdev] generating ELF shared object, C code, from a module like Fibionnaci

Tanya M. Lattner tonic at nondot.org
Wed May 16 11:01:19 PDT 2007

> Actually, I miss a document or wiki explaining how to use (without extending
> it) LLVM to generate code (in variety of ways, including C, ELF shared
> object, JIT-ed code in memory) from within an application. Just a simple
> example like fibionnaci is great!

I believe this is the only tutorial we have on how to use llvm in a 
variety of ways:

We welcome any changes to this document that you think would be helpful.


> My dream would be some tutorial documentation with working actual code
> snippets... in the spirit of e.g.
> http://www.gnu.org/software/lightning/manual/html_node/Fibonacci.html which
> documents an example similar to llvm/examples/Fibonacci/fibonacci.cpp I
> would like the same for LLVM, emitting JIT code, ELF shared library, C
> file.... Maybe such a documentation exist (hopefully up to date for
> LLVM2.0!) but I did not found it yet! Perhaps just linking the example
> source files from the web site could be a good idea...
> The doxygen documentation is very good, but does not separate enough what an
> LLVM user (some developer using LLVM in his own program) should see and what
> an LLVM developer (someone enhancing LLVM) should in addition know.
> I find LLVM great, but quite hard to grasp.
> Regards.

More information about the llvm-dev mailing list