This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: printf problem in twothreads sample
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Rod Campbell <rodc at sigmaelectronics dot com>
- Cc: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Date: Sat, 28 Jun 2003 12:30:16 +0200
- Subject: Re: [ECOS] printf problem in twothreads sample
- References: <1056752597.29927.135.camel@rodlinux>
> When I step through the program, the failure is in vfnprintf.cxx,
> function vfnprintf(). After parsing and finding the "%" in the format
> string, a line in the assembler code in vfnprintf() produces signal
> SIGILL, Illegal instruction. I wonder if this is a problem with code
> over-optimization? I also wonder if the problem I'm seeing with printf
> is a symptom of some larger problem with the eCos code I generated for
> this platform with the config tool?
I would check to see if the instruction causing the problem is
actually illegal for your processor. ie is gcc using an SH4
instruction even though you are on an SH3 processor.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss