PIC16F877 & Hi-Tech C - compiler problem?
Mike Mansheim email (remove spam text)
>When I add the offending line of code: d_temp = pow((double)10.0,
>still have out of ROM space errors. I can't believe that calling on the
>library function consumes over 2218 words (8192 - 5974).
Adding floating point C calls can consume huge amounts of program memory -
2k wouldn't surprise me at all. As a test, strip your program down until
it compiles, then remove the pow() call and see how much rom it took.
Another factor is that a C compiler is not going to be able to use every
last bit of rom.
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
See also: www.piclist.com/techref/microchip/languages.htm?key=c
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the