[ECOS] SH3 7709S optimization problem
Rod Campbell
rodc@sigmaelectronics.com
Fri Jul 25 16:57:00 GMT 2003
I've been working on porting eCos to a custom 7709S platform, using the
77x9 solution engine platform as a template. I successfully created
Redboot for my platform. I've had problems running some of the demo
programs (like twothreads) - printf() does not function correctly. If I
stepped through the assembler code with Insight, I would get a SIGILL
exception in one of the stdio library functions.
If I compile with -O1 optimization instead of -O2 (the eCos default for
the 77x9 solution engine platform), this code works. I am using eCos
2.0 and the SH3 gnu tools that come on that distribution CD (sh-elf-gcc
V 3.2.1, sh-elf-ld v 2.13.1 (eCosCentric)).
With -O1 optimization I have compiled and successfully run all the eCos
test programs (except 4 that deal with cache - see my related post "SH3
7709S cache disable problem").
Does anyone have any similar experiences or insights? Thanks.
Rod Campbell
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list