Carter Cheng
2009-Jul-27 15:56 UTC
[LLVMdev] Current status of MIPS support (some basic questions)
I am curious- what is the current status of the MIPS support in LLVM? I have a mipsel device and was wondering if I could compile code for it with clang. Would I have to implement a backend setup myself? Is there also an option to compile w/ clang on an x86 for Mipsel? Thanks in advance.
Bruno Cardoso Lopes
2009-Jul-27 16:02 UTC
[LLVMdev] Current status of MIPS support (some basic questions)
Hi Carter, On Mon, Jul 27, 2009 at 12:56 PM, Carter Cheng<carter_cheng at yahoo.com> wrote:> I am curious- what is the current status of the MIPS support in LLVM? I have a mipsel device and was wondering if I could compile code for it with clang.It's experimental, but patches are always welcome :)> Would I have to implement a backend setup myself? > > Is there also an option to compile w/ clang on an x86 for Mipsel?I never tried with clang and I think you would need to add the support. -- Bruno Cardoso Lopes http://www.brunocardoso.cc
Eli Friedman
2009-Jul-27 16:32 UTC
[LLVMdev] Current status of MIPS support (some basic questions)
On Mon, Jul 27, 2009 at 8:56 AM, Carter Cheng<carter_cheng at yahoo.com> wrote:> Is there also an option to compile w/ clang on an x86 for Mipsel?A normal build of clang includes limited cross-compile support by passing in the "-ccc-host-triple" option, although it's still a bit of a work-in-progress. Nobody has added support for any Mips targets, but it's really easy to patch clang/lib/Basic/Targets.cpp to add a new target. Please continue any discussion of this on cfe-dev. -Eli
Carter Cheng
2009-Jul-27 18:19 UTC
[LLVMdev] Current status of MIPS support (some basic questions)
Thanks both for the replies. I am primarily considering using clang to test the backend modifications I may need to make to the experimental code generator to get it to work on my Mipsel device. I suspect the current backend may need to be extended to accommodate my needs in this case. Reading the comments in the backend seems to suggest it support MIPS1-2 and O32 to some extent whereas I need something along the lines of 64bit MIPS3 support and N32. --- On Mon, 7/27/09, Eli Friedman <eli.friedman at gmail.com> wrote:> From: Eli Friedman <eli.friedman at gmail.com> > Subject: Re: [LLVMdev] Current status of MIPS support (some basic questions) > To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Date: Monday, July 27, 2009, 9:32 AM > On Mon, Jul 27, 2009 at 8:56 AM, > Carter Cheng<carter_cheng at yahoo.com> > wrote: > > Is there also an option to compile w/ clang on an x86 > for Mipsel? > > A normal build of clang includes limited cross-compile > support by > passing in the "-ccc-host-triple" option, although it's > still a bit of > a work-in-progress. Nobody has added support for any > Mips targets, > but it's really easy to patch clang/lib/Basic/Targets.cpp > to add a new > target. Please continue any discussion of this on > cfe-dev. > > -Eli > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu > http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >