ORC_developer
2008-Sep-29 21:52 UTC
[LLVMdev] Can I use x-86 front end to generate .bc file for another architecture
Hi. I successfully build llvm backend2.3 for sparc/solaris, but failed to build LLVM front end of Sparc/Solaris. I'm wondering if there is any option I can use with X-86 version of llvm-gcc front end to generate .bc file for sparc backend. Suppose I have the include files. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080929/c471d45a/attachment.html>
Chris Lattner
2008-Sep-29 21:58 UTC
[LLVMdev] Can I use x-86 front end to generate .bc file for another architecture
On Sep 29, 2008, at 2:52 PM, ORC_developer wrote:> Hi. > I successfully build llvm backend2.3 for sparc/solaris, but failed > to build LLVM front end of Sparc/Solaris. > > I’m wondering if there is any option I can use with X-86 version of > llvm-gcc front end to generate .bc file for sparc backend. Suppose > I have the include files. >Sure you can, but the code won't work in general. See the other thread about arch portability and also: http://llvm.org/docs/tutorial/LangImpl8.html#targetindep -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080929/ceefa36a/attachment.html>
ORC_developer
2008-Sep-29 22:07 UTC
[LLVMdev] Can I use x-86 front end to generate .bc file for another architecture
What's the option of llvm-gcc to use then? Is it just to specify -I or -B like gcc does? From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Chris Lattner Sent: Monday, September 29, 2008 4:58 PM To: LLVM Developers Mailing List Subject: Re: [LLVMdev] Can I use x-86 front end to generate .bc file for another architecture On Sep 29, 2008, at 2:52 PM, ORC_developer wrote: Hi. I successfully build llvm backend2.3 for sparc/solaris, but failed to build LLVM front end of Sparc/Solaris. I'm wondering if there is any option I can use with X-86 version of llvm-gcc front end to generate .bc file for sparc backend. Suppose I have the include files. Sure you can, but the code won't work in general. See the other thread about arch portability and also: http://llvm.org/docs/tutorial/LangImpl8.html#targetindep -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080929/2c7255fd/attachment.html>
Possibly Parallel Threads
- [LLVMdev] Can I use x-86 front end to generate .bc file for another architecture
- [LLVMdev] Question about SPARC target status
- [LLVMdev] Architecture Dependency of LLVM bitcode
- [LLVMdev] Architecture Dependency of LLVM bitcode (was Re: compile linux kernel)
- [LLVMdev] Question about SPARC target status