Hello, i'm trying to build my own tool-chain for an arm7tdmi
(interworking and nofmult).
First, i downloaded the toolchain at
http://embdev.net/articles/ARM_GCC_toolchain_for_Linux_and_Mac_OS_X ,
and everything was fine.
Now, i built my owm toolchain and everything is right when i'm compiling
in ARM mode, but i can't compile in interworking mode because i miss
some files in the directories /interwork (libm.a).
I just put the same flags as the before link, and i patched the
t-arm-elf (gcc) with the next:
1 | MULTILIB_OPTIONS += mhard-float/msoft-float
|
2 | MULTILIB_DIRNAMES += fpu soft
|
3 | MULTILIB_EXCEPTIONS += *mthumb/*mhard-float*
|
4 | #
|
5 | MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork
|
6 | MULTILIB_DIRNAMES += normal interwork
|
7 | #
|
8 | MULTILIB_OPTIONS += mcpu=arm7
|
9 | MULTILIB_DIRNAMES += nofmult
|
10 | MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7*
|
processing the newlib1.17 i had the next errors too:
1 | /bin/sh: line 4: arm-elf-ranlib: command not found
|
2 | /bin/sh: line 4: arm-elf-ranlib: command not found
|
3 | make[4]: *** [install-toollibLIBRARIES] Error 127
|
4 | make[3]: *** [install-am] Error 2
|
5 | make[2]: *** [install-recursive] Error 1
|
6 | make[1]: *** [install-target-newlib] Error 2
|
7 | make: *** [install] Error 2
|
At the moment i can "survive" working in ARM mode xD, but i want to
compile in Thumb/interworking mode as i guess i will have better
performance (actually i need it because i have loads of float operations
in my code).
By the way, i read the performance of the eabi is better for float
operation. Actually i built a tool-chain with target=arm-none-eabi, and
it compiles with inter-working without any problems, but i don't know if
that code will run in a arm7tdmi (AT91SAM7S256). I will test it on
Thursday.
Thanks in advance.