Floating point arithematics is working well in sdcc.I set up an A/D convertor with an accuracy of .0048V  .Using sdcc the convertion is very easy.



On 1/19/07, Raphael Neider < rneider@web.de> wrote:
Hi John,

> sdcc: /home/users/s/sd/sdcc-builder/build/sdcc-build/orig/sdcc/src/pic/gen.c:3609: genModOneByte: Assertion `result->aop->size == 1' failed.
> Caught signal 6: SIGABRT

Fixed in SDCC 2.4.6, r4581 (for both / and %). Thanks for the report.

> void multiply()
> {
>   value=ADRESH;
>   value=value&0x03;
>   value=value* 0.48;

You seem to use floating point arithmetics on the pic14 port. Could you
please report success or failure regarding this? I believed floating
point not to work, but did not check for a long time... Any report would
be highly appreciated. Anyhow, be warned: FP arithmetics might cause
further troubles. If in doubt, try to approximate using integer
arithmetics only.

Regards,
Raphael



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user