Heyu Zhu
2009-Nov-04 08:01 UTC
[LLVMdev] newbie qustion: how to generate machine code for target thumb?
Hello everyone, I want to generate machine code for target thumb, so run with bit code test.bc llc -march thumb test.bc -filetype obj -o test.o It doesn't generate test.o but show a message: "target doesn't support generation of this file type!" What's wrong? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091104/f4a7cfde/attachment.html>
Duncan Sands
2009-Nov-04 10:19 UTC
[LLVMdev] newbie qustion: how to generate machine code for target thumb?
Hi Heyu Zhu,> I want to generate machine code for target thumb, so run > with bit code test.bc > > llc -march thumb test.bc -filetype obj -o test.o > > It doesn't generate test.o but show a message: > > "target doesn't support generation of this file type!"writing object code directly is not supported yet (though it is being worked on), so for the moment you should not use "-filetype obj". Without this option llc will generate assembler, which you will need to assemble using an appropriate assembler. Best wishes, Duncan.
Heyu Zhu
2009-Nov-05 01:07 UTC
[LLVMdev] newbie qustion: how to generate machine code for target thumb?
Hi Duncan, Is it to say llvm-2.5 has no assembler and linker for target thumb and llvm-2.5 can only generate assembler file for the time being? Thanks 2009/11/4, Duncan Sands <baldrick at free.fr>:> > Hi Heyu Zhu, > > I want to generate machine code for target thumb, so run >> with bit code test.bc >> llc -march thumb test.bc -filetype obj -o test.o >> It doesn't generate test.o but show a message: >> "target doesn't support generation of this file type!" >> > > writing object code directly is not supported yet (though it is being > worked > on), so for the moment you should not use "-filetype obj". Without this > option > llc will generate assembler, which you will need to assemble using an > appropriate assembler. > > Best wishes, > > Duncan. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091105/dc5e18f9/attachment.html>
Seemingly Similar Threads
- [LLVMdev] newbie qustion: how to generate machine code for target thumb?
- [LLVMdev] newbie qustion: how to generate machine code for target thumb?
- [LLVMdev] Questions of instruction target description of MSP430
- [LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?
- [LLVMdev] Problem when build LLVM