[LLVMdev] newbie qustion: how to generate machine code for target thumb?
Duncan Sands
baldrick at free.fr
Wed Nov 4 02:19:47 PST 2009
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.
More information about the llvm-dev
mailing list