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 function error


Hi Aniket

Aniket S Joshi wrote:

I am tring to run the example program "towthreads.c" But it is giving output as follows

Entering twothreads' cyg_user_start()
function
Beginning execution; thread data is 0
Beginning execution; thread data is 1
Thread 00000000000000000000000000000000000000..........

This is a manifestation of a code optimisation issue in GCC 3.2.1 (and possibly other versions) targetting sh-elf. The eCosPro Developer's Kit for SuperH targets ships with a patched toolchain to address this problem.


John Dallaway
eCosCentric Limited

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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