[ECOS] Re: division don't work
xsong
sunxing3885_cn@sina.com
Sun Aug 19 02:15:00 GMT 2001
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.
More information about the Ecos-discuss
mailing list