Thank you, that's exactly what I was looking for.<br><br><div class="gmail_quote">On Wed, Feb 16, 2011 at 12:59 PM, Bill Wendling <span dir="ltr"><<a href="mailto:wendling@apple.com">wendling@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;"><div><div><div></div><div class="h5"><div>On Feb 16, 2011, at 11:08 AM, Damien Vincent wrote:</div>
<br><blockquote type="cite">I am working on implementing a new target for llvm.<br>So far (to make debugging easier), I was compiling a C code into 2 steps:<br>1) generate the llvm file:<br>clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll<br>

2) generate the assembly file using<br>llc -march=mytarget myfile.ll<br><br>Sometimes, I add some verbosity for the 2nd command like "-print-after-all".<br>Now, I'd like to compile a C code in 1 step using clang (clang -ccc-host-triple mytarge -S myfile.c -o myfile.s)<br>

Is there a way to have options like "print-after-all" with clang ? (that might be a newbie question but I didn't find a clear spec of what parameters can be given to clang...).<br><br></blockquote></div></div>
Hi Damien,</div><div><br></div><div>I think you might want to use the "-mllvm" flag:</div><div><br></div><div><span style="white-space: pre-wrap;">       </span>$ clang -ccc-host-triple mytarge -S myfile.c -o myfile.s -mllvm -print-after-all</div>
<div><br></div><font color="#888888"><div>-bw</div><div><br></div></font></div></blockquote></div><br>