Sarath Chandra wrote:> Hi Nick,
>
> I need the module.ll file. Now how can i configure LLVM to enable
> "c" target? Is it that i need to build from the scratch? Is there
any
> way to enable 'c' target also?
Yes. To quote myself:> I think you're looking for configure --enable-targets=x86,cbe .
:)
Nick
>
> On Tue, Jan 24, 2012 at 12:10 PM, Nick Lewycky <nicholas at mxc.ca
> <mailto:nicholas at mxc.ca>> wrote:
>
> Sarath Chandra wrote:
>
> 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
>
>
> You don't need the llvm-dis step (unless you want the module.ll file
> for some other reason).
>
> 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?
>
>
> I think you're looking for configure --enable-targets=x86,cbe .
>
> Nick
>
>
>
>
> --
> Sairam,
>
> (¨`·.·´¨)
> `·.¸(¨`·.·´¨)
> (¨`·.·´¨)¸.·´ Sarath!!!
> `·.¸.·´
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>________________________________
> From: Sarath Chandra <sarathcse19 at gmail.com>
>To: llvmdev at cs.uiuc.edu
>Sent: Tuesday, 24 January 2012 2:12 PM
>Subject: [LLVMdev] How to enable C as a target
>
>
>Hi,
>
> How to enable C as a target while configuring LLVM...
>
>Can i do ' --enable-targets = x86,c ' to make it work?
>
>´ Sarath!!!
> `·.¸.·´
>
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120124/b011b411/attachment.html>