Reid might be able to tell you how to do it with a single command using the llvmc tool.
In future, please send your questions to llvmdev@cs.uiuc.edu (and add yourself to that list if you're not on it, because all replies go to the list by default).
The llvmc support for C/C++ isn't quite there yet. I'm still working on
a few features to integrate llvmc and llvm-ld. Once that is done, I'll
fix the config file for c and c++. When that's done you'd be able to
just:
I believe that llc only accepts LLVM bytecode, while llvmg++ only generates LLVM assembly code (i.e. human readable LLVM code that must be assembled with llvm-as or gccas).
If the above command line does not work, please try the following: