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

ORC_developer heguojin at ict.ac.cn
Mon Sep 29 15:07:17 PDT 2008


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>


More information about the llvm-dev mailing list