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

salvatore benedetto salvatore.benedetto at gmail.com
Sun Jul 22 14:03:18 PDT 2012


On Sun, Jul 22, 2012 at 10:37 PM, Renato Golin <rengolin at systemcall.org> wrote:
> 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... :/

While we are at it, if a new comer would like to understand where everything
takes place, where should he look?

I did a grep in the source and eventually ended up in clang/something/driver.

Regards,
S.



More information about the llvm-dev mailing list