<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><br></div><div><div class="tripane message content showqr" style="position: absolute !important; top: 0px; left: 0px; right: 0px; overflow-x: auto; overflow-y: auto; border-image: initial; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; bottom: 40px; border-style: initial; border-color: initial; "><div class="msg-body inner  undoreset" role="main" aria-label="Message Body" style="margin-top: 25px; margin-right: 24px; margin-bottom: 22px; margin-left: 29px; word-wrap: break-word; font: normal normal normal 12pt/normal 'Courier New', monaco, monospace, sans-serif; ">Sarath Chandra wrote:<br>> Hi Nick,<br>><br>>      I need the module.ll file. Now how can i configure LLVM to enable<br>> "c" target? Is it that i need to build from the scratch? Is there
 any<br>> way to enable 'c' target also?<br><br>Yes. To quote myself:<br>>    I think you're looking for configure --enable-targets=x86,cbe .<br><br>:)<br><br>Nick<br><br>><br>> On Tue, Jan 24, 2012 at 12:10 PM, Nick Lewycky <<a ymailto="mailto:nicholas@mxc.ca" href="mailto:nicholas@mxc.ca" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">nicholas@mxc.ca</a><br>> <mailto:<a ymailto="mailto:nicholas@mxc.ca" href="mailto:nicholas@mxc.ca" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">nicholas@mxc.ca</a>>> wrote:<br>><br>>    Sarath Chandra wrote:<br>><br>>        Hi,<br>><br>>              I wanted to convert .ll file to .c file (for the sake of<br>>        debugging<br>>        the c
 file). I used the command "llc" with "-march=c" option.<br>>        But i'm<br>>        getting the below error.<br>><br>>        * llc: error: invalid target 'c' *<br>>        *<br>><br>>        *<br>>        My script file code for converting it is:<br>><br>>        llvm-as -f module.ll<br>>        opt -o=module.bc module.bc<br>>        llvm-dis module.bc<br>><br>><br>>    You don't need the llvm-dis step (unless you want the module.ll file<br>>    for some other reason).<br>><br>>        llc -f -march=c module.bc<br>>        #gcc  module.cbe.c -lstdc++<br>><br>>        What i need to do to get the 'c' file generated. I build
 LLVM using<br>>        '*enable-targets = x86*' . Can i use '*enable-targets = x86,c*'<br>>        to clear<br>>        the error?<br>><br>><br>>    I think you're looking for configure --enable-targets=x86,cbe .<br>><br>>    Nick<br>><br>><br>><br>><br>> --<br>> Sairam,<br>><br>>    (¨`·.·´¨)<br>>    `·.¸(¨`·.·´¨)<br>>    (¨`·.·´¨)¸.·´ Sarath!!!<br>>      `·.¸.·´<br>><br>><br>><br>> _______________________________________________<br>> LLVM Developers mailing list<br>> <a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">LLVMdev@cs.uiuc.edu</a>        <a
 href="http://llvm.cs.uiuc.edu/" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">http://llvm.cs.uiuc.edu</a><br>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br>_______________________________________________<br>LLVM Developers mailing list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">LLVMdev@cs.uiuc.edu</a>        <a href="http://llvm.cs.uiuc.edu/" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">http://llvm.cs.uiuc.edu</a><br><a
 href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank" style="color: rgb(35, 71, 134); outline-width: 0px; outline-style: initial; outline-color: initial; ">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div><div><br></div></div><div id="quick-reply" class="shaded showqr" style="display: none; position: absolute; bottom: 0px; left: 0px; right: 0px; padding-top: 7px; padding-right: 8px; padding-bottom: 0px; padding-left: 25px; height: 32px; background-color: rgb(245, 245, 245); border-top-style: solid; border-top-width: 1px; border-top-color: rgb(224, 224, 224); z-index: 10; overflow-x: hidden; overflow-y: hidden; "><div class="whiteline" style="position: absolute; top: 0px; left: 0px; height: 1px; width: 769px; color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif; font-size: 12px; "></div><div id="quick-reply-box" style="min-width: 400px; color: rgb(69, 69, 69); font-family: Arial, Helvetica, sans-serif;
 font-size: 12px; "></div></div></div><div><br></div><div><br></div><div><br></div><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Sarath Chandra <sarathcse19@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> llvmdev@cs.uiuc.edu <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, 24 January 2012 2:12 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [LLVMdev] How to enable C as a target<br> </font> </div> <br><div id="yiv2046685389">Hi,<br><br>    How to enable C as a target while configuring LLVM...<br><br>Can i do '
 --enable-targets = x86,c ' to make it work?<br clear="all"><br>´ Sarath!!!<br>    `·.¸.·´<br>
</div><br>_______________________________________________<br>LLVM Developers mailing list<br><a ymailto="mailto:LLVMdev@cs.uiuc.edu" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br><br> </div> </div> </blockquote></div>   </div></body></html>