[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
I'm writing you again to add more informations I discovered: looking
at the following statement which gives me errors:
-O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall
-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/Users/dummy/Develop/llvm/llvm-2.6/include -mthumb -fexceptions -c
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
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,
> 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