[LLVMdev] Is there any tool can generate MIPS ELF file?

Matheus Almeida Matheus.Almeida at imgtec.com
Thu Jun 12 04:14:04 PDT 2014


An assembler is the tool you're after. [And a linker if you want to have an executable in the end].

You can specify -filetype=obj to llc and you should get an object file. Note that llvm-mc is not an end-user tool but it should do the job you have asked as well i.e., 

llvm-mc -arch=mips64 =mcpu=mips64 -filetype=obj test.s -o test.o (this should generate test.o)

Regards,
Matheus

-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Nancy
Sent: 12 June 2014 11:24
To: LLVM Developers Mailing List
Subject: [LLVMdev] Is there any tool can generate MIPS ELF file?

Hi,

To my understanding, ll/bc can translate to any target machine code that make cross-compiling easy.

$llc -march=mipsel -mcpu=mips64 test.ll
generate test.s(MIPS ASM)

There must be a tool turns test.s to mips ELF file to make this whole thing done completely. What is it?


--
Best Regards,
Yu Rong Tan
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list