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 CCS Technical Support

16f88 rom

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



Joined: 19 Oct 2008
Posts: 6

View user's profile Send private message

16f88 rom
PostPosted: Fri Aug 17, 2012 2:43 am     Reply with quote

I can not use more space than 51% 16f88 rom. What should I do ?
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Aug 17, 2012 4:27 am     Reply with quote

Next time first try to help yourself:
- Surf to the Google website.
- Type in exactly:
Quote:
site:ccsinfo.com/forum "out of ROM"


Most common problem is that the PIC16 uses bank switching to address memory in pages. Each function you write has to fit in such a page. When a function is too big it won't fit and you get the 'out of memory' error even when the total number of available bytes is sufficiently large.
Solution is to split your large function(s) into smaller functions. Additional bonus is that your program will be easier to maintain as people tend to have a memory span for understanding only functions up to about 50 lines.
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