[LLVMdev] Is it possible to run llvm on mips machine?

Chris Lattner clattner at apple.com
Wed Nov 17 09:13:15 PST 2010


On Nov 17, 2010, at 6:33 AM, Bruno Cardoso Lopes wrote:

>>>> Also, what sort of memory footprint would you require to use the JIT on a MIPS target? The JIT currently (and the next incarnation is also likely to) pulls in an awful lot of fat LLVM libraries that cause a JIT-based compiler to be 8MB-up on x86. MIPS would be substantially larger than this due to its RISC instruction set.
>>>> 
>>> I will use it on a MIPS PC Which have typically more than one Gigebyte
>>> memory. Anyway, I think I should spend some time to understand MC-JIT
>>> more.
>> 
>> Excellent. You may wish to make sure that there's enough isa support for your target in the mips backend as well. There are definitely plenty of things in that target to work on while the rest of the JIT is coming up around.
> 
> A good start point, as Eric said, would be to add the MC support for
> the mips backend, see X86MCCodeEmitter.cpp and X86MCInstLower.cpp for
> a more concrete example of how it can be done.

The best place to look now is actually the PowerPC backend.  It is fully mc'ized, a lot simpler than X86 and more similar to MIPS from an ISA level.

-Chris



More information about the llvm-dev mailing list