public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re: division don't work
@ 2001-08-19  2:15 xsong
  0 siblings, 0 replies; only message in thread
From: xsong @ 2001-08-19  2:15 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I change the option back to -m3. It work now. I am too hurry to post this
message. I hope the experience is usefule for somebody.

Next step, I will add keyboard and mouse driver based on linux-dc project.

Thanks


>Hi, folks
>
>I am testing ecos on my dreamcast box. I found following code don't work
>
>function: diag_write_long_num
>
>   /* construct digits into buffer in reverse order */
>    if( n == 0 ) buf[bpos++] = '0';
>    else while( n != 0 )
>    {
>        cyg_ucount8 d = n % base;
>        buf[bpos++] = digits[d];
>        n /= base;
>    }
>
>After division, the value of n no change. Code loop forver.
>
>My compiler is 2001-06-18 snapshot.
>
>the option has been changed from -m3 to -m4.
>
>Does it be complier problem or others?
>
>Best regard.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-19  2:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-19  2:15 [ECOS] Re: division don't work xsong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).