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... might be helpful,

In general, docs are available at .


Err, make that .


Forgot to CC the list again. :frowning: