[LLVMdev] Docs/examples

Eli Friedman eli.friedman at gmail.com
Thu May 12 16:44:47 PDT 2011


On Thu, May 12, 2011 at 3:57 PM, Hans Stimer <hans.stimer at gmail.com> wrote:
> Are there examples on doing the following?
> 1) Creating stand alone executables

You can try looking at tools/llc/llc.cpp for how to make an object
file from IR... as for making an executable, I would suggest actually
just invoking clang, since it knows how to call the system linker.

> 2) Making system calls

Call syscall()?  I'm not completely sure what you're asking.

> 3) Creating debug info

I don't think we have any good examples for debug info...
http://llvm.org/docs/SourceLevelDebugging.html might be helpful,
though.

In general, docs are available at
http://llvm.org/docs/SourceLevelDebugging.html .

-Eli




More information about the llvm-dev mailing list