[LLVMdev] building a llvm-arm-elf crosscompiler on OSX 10.5

Pazzo Da Legare pazzodalegare at gmail.com
Tue Jan 12 04:45:18 PST 2010

Dear ML,
Dear Anton,

I'm writing you again to add more informations I discovered: looking
at the following statement which gives me errors:

-B/usr/local/cross-llvm-gcc-arm-elf-4.2-2.6/arm-elf/lib/ -isystem
/usr/local/cross-llvm-gcc-arm-elf-4.2-2.6/arm-elf/include -isystem
/usr/local/cross-llvm-gcc-arm-elf-4.2-2.6/arm-elf/sys-include  -O2
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fno-inline -g
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I../../llvm-gcc4.2-2.6.source/gcc/../include -I./../intl
-I../../llvm-gcc4.2-2.6.source/gcc/../libdecnumber -I../libdecnumber
-I/Users/dummy/Develop/llvm/llvm-2.6/include -mthumb  -fexceptions -c
../../llvm-gcc4.2-2.6.source/gcc/unwind-dw2-fde.c -o

I found that if I change -mthumb in -mthumb-interwork then I have no
errors. How can I instruct configure to use -mthumb-interwork instead
of -mthumb?

Thank you again for your attention,


2010/1/11 Pazzo Da Legare <pazzodalegare at gmail.com>:
> Dear ML,
> Anton, Thank you for your answer and your help.
> I had a look at ARM.td of LLVM 2.6 (in lib/Target/ARM..) where I found
> following definitions:
> // V4T Processors.
> def : ProcNoItin<"arm7tdmi",        [ArchV4T]>;
> def : ProcNoItin<"arm7tdmi-s",      [ArchV4T]>;
> def : ProcNoItin<"arm710t",         [ArchV4T]>;
> def : ProcNoItin<"arm720t",         [ArchV4T]>;
> def : ProcNoItin<"arm9",            [ArchV4T]>;
> def : ProcNoItin<"arm9tdmi",        [ArchV4T]>;
> def : ProcNoItin<"arm920",          [ArchV4T]>;
> def : ProcNoItin<"arm920t",         [ArchV4T]>;
> def : ProcNoItin<"arm922t",         [ArchV4T]>;
> def : ProcNoItin<"arm940t",         [ArchV4T]>;
> def : ProcNoItin<"ep9312",          [ArchV4T]>;
> I would like to understand if LLVM can be used for ArchV4T or not.
> Could you please indicate specific documentation for llvm ARM codegen?
> Does anybody use llvm with arm7tdmi ucontroller (e.g. at91sam7xxx)
> Thank you again for your help,
> pz
> 2010/1/10 Anton Korobeynikov <anton at korobeynikov.info>:
>> Hello, Pazzo
>>> Any clue?
>> Yes. Sorry, my fault - next time I should check ARM docs before replying.
>> ARM7TDMI is ARMv4T and this is not supported by LLVM (LLVM does v5+ codegen).

More information about the llvm-dev mailing list