View previous topic :: View next topic |
Author |
Message |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
Out of ROM; a segment or the program is too large @DIV88 |
Posted: Tue Jul 11, 2006 1:25 am |
|
|
Hi,
i get this error; what does the @DIV88 mean? |
|
|
Ttelmah Guest
|
|
Posted: Tue Jul 11, 2006 3:09 am |
|
|
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
|
|
Posted: Tue Jul 11, 2006 3:31 am |
|
|
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
|
|
Posted: Tue Jul 11, 2006 4:03 am |
|
|
Try writing a float arithmetic routine yourself. You will soon learn why...
Best Wishes |
|
|
|