[LLVMdev] Convert .ll file to .c file

Sarath Chandra
Tue, 24 Jan 2012 06:35:00 -0000

Hi,

    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.

         *llc: error: invalid target 'c'*
*
*
My script file code for converting it is:

llvm-as -f module.ll
opt -o=module.bc module.bc
llvm-dis module.bc
llc -f -march=c module.bc
#gcc  module.cbe.c -lstdc++

What i need to do to get the 'c' file generated. I build LLVM using
'*enable-targets
= x86*' . Can i use '*enable-targets = x86,c*' to clear the error?

Thanks in advance......
*
*
--
Sairam,

  (¨`·.·´¨)
   `·.¸(¨`·.·´¨)
  (¨`·.·´¨)¸.·´ Sarath!!!
    `·.¸.·´
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120124/337fbdb5/attachment.html>