1 (edited by Materdaddy 2008-05-22 15:03:48)

Topic: arm toolchain

Are there any known problems with the arm toolchain including using optimization?  I've only compiled one thing for my chumby (rsync) and saw lots of strange behavior.  Using gdb I was able to see that in fmtfp (a floating point emulation portion of lib/snprintf.c in rsync) had a value change between two lines of code when it's not touched.  This was causing major problems including some random segfaults.

I could not reproduce it with exporting CFLAGS to exclude -O2 which was on by default for the rsync build.

Linux Guy - Occasional Chumby Hacker

Re: arm toolchain

Yes, you really don't want to go past -O1 with this toolchain, because you'll very likely get bogus code - unfortunately, this is all too common for GCC targeting non-x86 chipsets.

There are, however, some ARM-model-specific optimizations in GCC you can turn on to get performance - the iMX21 in the device is an ARM926EJ-S.