Thanks for that Andy, yes I tried compiling with some different maths
functions, the log(x) function uses 599 words and the sqrt(x) function
uses 573 words, I will have to think of something else, If I use any maths
functions using the 16F84 I won't have much room left for my program!.
On Fri, 17 Nov 2000, Andy Jancura wrote:
{Quote hidden}> >Hi Folks!, I am trying to use picclite to do a little maths on my pic i/o
> >I am using #include <math.h>
> >
> >then in main float a, b=2, c=2; // simple test
> > a=pow(b,c); //
> >
> >This compiles no trouble but when it links it produces lots of errors
> >similar to this:-
> >
> >::Cant find 0x5B words(0x5B withtotal) for psect text0 in segment CODE
> >
> >I am using a 16F84 and the default linker settings.
> >
> >Anybody got any ideas what could be wrong?.
> >Is anyone successfully using maths functions on the 16F84?
>
> Library code for pow() has little bit more than 1024 words.
>
> Andrej
> _________________________________________________________________________
----- John P. Brown .....J.P.BrownKILLspam@spam@bradford.ac.uk ----
\ --- Witty remark goes here --- /
--------------------------------------------------
--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestKILLspammitvma.mit.edu