[LLVMdev] Setting up a cross-compiler for cortex-m3

Renato Golin rengolin at systemcall.org
Sun Jul 22 13:37:53 PDT 2012


On 22 July 2012 20:42, Anton Korobeynikov <anton at korobeynikov.info> wrote:
>> Any suggestions?
> Try to specify CPU explicitly.

He shouldn't have to, but that might help. Maybe setting -march? This
is a big mess...

I thought that v7 always assumed Thumb2 for the thumb flag, and v7M
should always assume Cortex-M3 CPU if none provided.

It's funny that James had a great patch to solve all those problems by
implementing Clang's architecture selection in table-gen more than an
year ago. I wonder what happened to that thread... :/

-- 
cheers,
--renato

http://systemcall.org/



More information about the llvm-dev mailing list