[LLVMdev] Setting up a cross-compiler for cortex-m3 (original) (raw)
Chris Cadwallader ccadwallader at arxan.com
Mon Jul 23 09:03:18 PDT 2012
- Previous message: [LLVMdev] Setting up a cross-compiler for cortex-m3
- Next message: [LLVMdev] Setting up a cross-compiler for cortex-m3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Darwin, if -march is armv7 clang's driver will assume you want thumb2 unless you also give it -mno-thumb but that is irrelevant with mcpu=cortex-m3.
I agree its a mess.
-Chris
On Jul 22, 2012, at 4:37 PM, Renato Golin 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... :/ -- cheers, --renato http://systemcall.org/
LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
- Previous message: [LLVMdev] Setting up a cross-compiler for cortex-m3
- Next message: [LLVMdev] Setting up a cross-compiler for cortex-m3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]