<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi Amit,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I believe what you need to do is compile llvm-gcc as a cross compiler in much the same way that you would for normal gcc. The LLVM Target library contains all of the back ends by default so I believe retargeting the front end is all you've got to do.</DIV><DIV><BR><DIV><DIV>On Sep 21, 2007, at 12:53 AM, Amit Singh wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi,<BR><BR>I have downloaded llvm-2.0 source from <A href="http://llvm.org">llvm.org</A>. <BR><BR>My machine specs are:<BR>OS : Linux(Debian-Ubuntu)<BR>Tool Chain: gcc 3.x and gcc 4.x<BR>CPU: X86<BR><BR>I have been able to build llvm. I could not find anywhere in the build or documentation that my build of llvm can produce an ARM binary.In the config.log I could see it detected an X86 CPU which is correct since I am using in fact an X86 host CPU.<BR><BR>I would like to know how to build an ARM11 binary from a c-source code. It would be great if I can get all the necessary steps to producing an ARM11 binary. <BR><BR>Moreover My native CPU system is an X86 not an arm. What I want to test is whether I can use the llvm to compile my C-programs to produce ARM11 binaries which I would transfer into my scratchbox target for ARM, where Qemu would be used to execute the binaries. <BR><BR>Hope I have provided enough information....please let me know if something is missing?<BR><BR>Awaiting.......<BR>Amit<BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LLVM Developers mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</A> <SPAN class="Apple-converted-space"> </SPAN><A href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Christopher Lamb</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR></DIV></BODY></HTML>