: CCS compiler - Optimizing code in main() function
Mike Mansheim email (remove spam text)
>When I compile my program it says 94 % used. I ad on line of code an it is
>out of ROM space or segment to large. I suspect the segment contains the
>main() function is to large. How do I get some code move out of this
The #separate directive forces a function to be separate when the compiler
might want to make it inline.
Look in the back of your CCS manual in the "Common Questions and Answers"
section for their answer to the question "Why do I get an OUT OF ROM error
when there seems to be ROM left?" for a discussion of your exact situation.
Also from the CCS manual, be aware of this note when using the #separate
directive: "The compiler will make all procedures marked SEPARATE
as requested even if there is not enough stack space to execute"
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the