piclist 2001\01\18\152111a >
Thread: PIC16F877 & Hi-Tech C - compiler problem?
face BY : 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
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) PIC16F877 & Hi-Tech C - compiler problem?

month overview.

new search...