Docs/examples

Are there examples on doing the following?

  1. Creating stand alone executables
  2. Making system calls
  3. Creating debug info

Obviously clang does all this, but I was hoping for something less complex.

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

Err, make that http://llvm.org/docs/ .

-Eli

Forgot to CC the list again. :frowning: