title: how to compile a program using LLVM for different target architecture?
body: <p>I want to compile the basic program hello.c to native x86 architecture using LLVM / Clang to generate the intermediate and assembly. 
  I used the following commands :</p>
  
  <pre><code>clang -O3 -emit-llvm hello.c -c -o hello.bc
  llc hello.bc -o hello.s
  </code></pre>
  
  <p>It works perfectly. How do I generate the code for other architecture say SPARC 32 bit? Are there any flags used in clang to specify the architecture?</p>