CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problem with rom

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
falcon1877



Joined: 30 Sep 2012
Posts: 24

View user's profile Send private message

Problem with rom
PostPosted: Sun Oct 14, 2012 5:12 pm     Reply with quote

Hi all, I have a problem. When I use over 85% of the ROM, my program run so slow (Timer don't work as I require). If I reduce ROM use around 80-84%, everything is ok .
How can I solve this problem or someone can tell me how to reduce ROM use ?? Thanks Very Happy
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Sun Oct 14, 2012 5:43 pm     Reply with quote

Post your code and perhaps some help will arrive.

Nobody here can read your mind.
Lets hope we can understand your code.
Very Happy Very Happy Very Happy Very Happy Very Happy
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 14, 2012 6:06 pm     Reply with quote

Always post your PIC. Some PICs have 256 rom words, and others have
64K or higher. If you don't post your PIC, you're just wasting time.
Ttelmah



Joined: 11 Mar 2010
Posts: 19326

View user's profile Send private message

PostPosted: Mon Oct 15, 2012 12:46 am     Reply with quote

Also, using more ROM, is probably not the problem. Remember as your code gets larger, so does your usage of RAM, and also how much work the processor is actually doing (running more routines etc.). Increase in RAM usage, may well imply more page switching - as a general comment, declare the variables that are accessed the most, early in your code, and if the processor is doing more, then 'of course' it'll run slower....

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group