Saturday, February 18, 2006

GCC Tool Chains for ARM processor

Cross Compiler for ARM processer:
www.arm.com provides a realview IDE software for the ARM processer. But its costly for a normal person to buy. It also provides a 30 day trial version CD. But there is also a free cross compiler for ARM processor, as GCC toolchains for ARM-ELF. It can be obtained from http://www.codesourcery.com/gnu_toolchains/arm/. All the tools can be downloaded separately and compiled following the instructions from any site. I followed the steps from http://www.6809.org.uk/gp32/build-cross-compiler.shtml.
http://www.codesourcery.com will surely answer any of the compilation and building problems. I could compile it very easily. But i had problems when i tried to compile a C file with the arm-elf-gcc. It gave me lots of errors while linking the object files. I was sitting with that for a day or so.
Error Message:
/usr/local/arm/3.4-codesources/bin/../lib/gcc/arm-none-
elf/3.4.0/../../../../arm-none-elf/bin/ld: ERROR: /usr/local/arm/3.4-
codesources/bin/../lib/gcc/arm-none-elf/3.4.0/../../../../arm-none-
elf/lib/libc.a(atexit.o) uses FPA instructions, whereas a.out does not

Just compile gcc with --with-fpu=fpa option to correct it :)

No comments: