This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printf problem in twothreads sample


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]