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 in new compiler version

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



Joined: 28 Aug 2007
Posts: 106

View user's profile Send private message

Out of ROM in new compiler version
PostPosted: Sat May 12, 2012 3:35 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sat May 12, 2012 5:01 am     Reply with quote

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

View user's profile Send private message

PostPosted: Sat May 12, 2012 5:59 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon May 14, 2012 7:39 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon May 14, 2012 9:10 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon May 14, 2012 10:50 am     Reply with quote

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
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