Anonymous
Not applicable
Mar 03, 2013
10:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 03, 2013
10:12 PM
I found in the Yagarto toolchain there are several libm.alib/thumb/libm.alib/thumb/v7m/libm.alib/libm.aI tried to link to all of these libraries. But they all seem to be built for thumb. I dont see a folder such as lib/thumb2, which supposedly will hold thumb2 libraries. Do you know if the Yagarto toolchain supports the thumb2 math library?also, when i run option --print-multi-lib, i get the following output:C:yagarto-20121222 in>arm-none-eabi-gcc.exe --print-multi-lib.;thumb;@mthumbthumb/v7m;@mthumb@march=armv7thumb/v6m;@mthumb@march=armv6-mI dont see thumb2 being listed there. Or, maybe, thumb implies thumb2 in this output?
Labels
- Labels:
-
SPI
- Tags:
- built
- cyagarto-20121222binarm-none-eabi-gcc.exe
- folder
- found
- hold
- implies
- liblibm.a
- libm.a
- libraries
- library
- libthumb2
- libthumblibm.a
- libthumbv7mlibm.a
- link
- linking
- listed
- math
- maths
- option
- output
- print-multi-lib
- supports
- supposedly
- thumb
- thumb2
- thumb@mthumb
- thumbv6m@mthumb@march=armv6-m
- thumbv7m@mthumb@march=armv7
- toolchain
- trouble
- yagarto
2 Replies
Anonymous
Not applicable
Mar 03, 2013
10:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 03, 2013
10:13 PM
We did include "-mthumb -mcpu=cortex-m3 -mfpu=softvfp" as link flags in our test.BTW, given a library such as libm.a, how can I know if its built for ARM or thumb2?
Anonymous
Not applicable
Mar 03, 2013
10:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 03, 2013
10:14 PM
Hmmm, looks like we missed the step to re-generate the actual binary after linking with libm.a. After re-generating the binary, both libm.a under lib/thumb works for STM32F2xx!The lib/thumb/v7m/libm.a generates smaller code, which makes sense as Cortex-M3 is ARMv7m architecture.