This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
SH3 7709S optimization problem
- From: Rod Campbell <rodc at sigmaelectronics dot com>
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Date: 25 Jul 2003 12:58:01 -0400
- Subject: [ECOS] SH3 7709S optimization problem
- Organization: Sigma Electronics
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