<div>Hi,</div><div><br></div><div> I wanted to convert .ll file to .c file (for the sake of debugging the c file). I used the command "llc" with "-march=c" option. But i'm getting the below error.</div>
<div><br></div><div> <b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#FF0000">llc: error: invalid target 'c'</font></span></b></div><div><b><span class="Apple-style-span" style="background-color:rgb(255,255,255)"><font class="Apple-style-span" color="#FF0000"><br>
</font></span></b></div><div>My script file code for converting it is:</div><div><br></div><div><div>llvm-as -f module.ll</div><div>opt -o=module.bc module.bc</div><div>llvm-dis module.bc</div><div>llc -f -march=c module.bc</div>
<div>#gcc module.cbe.c -lstdc++</div></div><div><br></div><div>What i need to do to get the 'c' file generated. I build LLVM using '<b>enable-targets = x86</b>' . Can i use '<b>enable-targets = x86,c</b>' to clear the error?</div>
<div><br></div><div>Thanks in advance...... </div><div><font class="Apple-style-span" color="#FF0000"><b><br></b></font></div>-- <br>Sairam,<br><br> (¨`·.·´¨) <br> `·.¸(¨`·.·´¨) <br> (¨`·.·´¨)¸.·´ Sarath!!!<br> `·.¸.·´<br>