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]

Re: division don't work


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.



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