[LLVMdev] Can I use x-86 front end to generate .bc file for another architecture

Chris Lattner clattner at apple.com
Mon Sep 29 14:58:07 PDT 2008


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>


More information about the llvm-dev mailing list