This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: division don't work
- To: <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] Re: division don't work
- From: "xsong" <sunxing3885_cn at sina dot com>
- Date: Sun, 19 Aug 2001 17:19:16 +0800
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.