[ECOS] printf problem in twothreads sample

Andrew Lunn andrew.lunn@ascom.ch
Sat Jun 28 10:30:00 GMT 2003


> 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



More information about the Ecos-discuss mailing list