View previous topic :: View next topic |
Author |
Message |
richi-d
Joined: 28 Aug 2007 Posts: 106
|
Out of ROM in new compiler version |
Posted: Sat May 12, 2012 3:35 am |
|
|
Hello,
The trouble with my compiler update (4.132) doesn´t end. Now in another software I get this error message:
Code: |
*** Error 71 "Main.c" Line 4415(0,1): Out of ROM, A segment or the program is too large MAIN
Seg 00200-0FFFE, 7A26 left, need 07B1A
Seg 10000-157F6, 57F8 left, need 07B1A
Seg 00000-00002, 0000 left, need 07B1A
Seg 00004-001FE, 0000 left, need 07B1A
|
With the version 4.105 I can build and have only 74% used |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9241 Location: Greensville,Ontario
|
|
Posted: Sat May 12, 2012 5:01 am |
|
|
So what's your question ???
possible 'solutions'....
You could stay with 4.105 for that other program,since it works with that version.
You could read the help files to see what you can do to fix the error 71.
You could recompile with versions between 4.105 and 4.132 to see when the error does occour. Just be sure to install the compiler in unique folders to NOT introduce 'path' errors ! |
|
|
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
|
|
Posted: Sat May 12, 2012 5:59 am |
|
|
Hi,
Or, god forbid, you could take some personal initiative and search the forum archives for "out of ROM", and find the many, many times this has been discussed before!
Don't be so lazy!
John |
|
|
richi-d
Joined: 28 Aug 2007 Posts: 106
|
|
Posted: Mon May 14, 2012 7:39 am |
|
|
Or,
I do what I had to do, long long time ago: I don´t use CCS anymore! |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Mon May 14, 2012 9:10 am |
|
|
Quote: | I do what I had to do, long long time ago: I don´t use CCS anymore! |
Simply expect similar or different problems with other compilers.
Seems like you have much too much code in a single function (apparently main()). Separating part of it in a function should help. |
|
|
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
|
|
Posted: Mon May 14, 2012 10:50 am |
|
|
If you have code that compiles in one version and runs out-of-rom in a newer version, one possibility is that CCS is doing something different which generates larger code. Usually, when a new version is released the compiler will generate code differently, hence the version change.
Like FvM stated, try breaking up the largest function, most likely main(), into two, or more, smaller functions. See if this takes care of the issue. Anytime there is a new version released there is no guarantee that the new one doesn't have bugs that have been intruduced with the changes that are used to fix other issues. If you find a version that is working for you and a new one crashes your project, report the issue and rev. back to the version that's working.
Ronald |
|
|
|