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

Out of ROM; a segment or the program is too large @DIV88

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



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

Out of ROM; a segment or the program is too large @DIV88
PostPosted: Tue Jul 11, 2006 1:25 am     Reply with quote

Hi,

i get this error; what does the @DIV88 mean?
Ttelmah
Guest







PostPosted: Tue Jul 11, 2006 3:09 am     Reply with quote

That is the 8bit * 8bit division routine.
The problem is that memory on the PIC is organised in 'pages', and a whole routine, must fit fully into a page. If you write large subroutines, rather than 'splitting' your work up into smaller pieces, these have to then be put into seperate pages, not leaving enough space for other routines to fit. 'DIV88', just happens to be the internal routine, that the compiler cannot find space for, but the problem is being caused by the structure of other parts of the code.
Have a look through the forum, for past posts about this error. You probably need to consider using '#separate', to force some subroutines to be built as separate items, rather than combined into single large entities, and possibly splitting up larger routines.

Best Wishes
Christophe



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Tue Jul 11, 2006 3:31 am     Reply with quote

thks for the reply. I allready used #SEPARATE for all functions.

But the problem was that I used way too much float arithmetic.

That seems to take in incredible ROM space! (why?)
Ttelmah
Guest







PostPosted: Tue Jul 11, 2006 4:03 am     Reply with quote

Try writing a float arithmetic routine yourself. You will soon learn why...

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