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 support@ccsinfo.com

Compiler Error

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



Joined: 17 Nov 2003
Posts: 7

View user's profile Send private message

Compiler Error
PostPosted: Thu Feb 12, 2004 12:25 pm     Reply with quote

This may be silly but here goes

This is what I get when I hit compile.

Compiling: New Program.c
in
Lines: 3224
Linking
Writing New Program.COD
Internal Error - Contact CCS => Code 85:54
New Phone Program.c, Line 1659

Does anybody know what this is and how to fix it? The code is getting pretty big and I'm using an 18LF6620 but there's plenty of RAM and ROM left. ( I know this because if I bring down my array sizes a little, it works fine and I'm using about 40% of my RAM )

Any help please??
Al



Joined: 13 Nov 2003
Posts: 28
Location: Belfast

View user's profile Send private message

PostPosted: Fri Feb 13, 2004 6:39 am     Reply with quote

I have had a similar experience. The %RAM displayed does not seem to be true reflection of actual RAM used. The solution is as you say to reduce the amount of RAM used. The RAM is the total sum of all variables used in Bytes.

Solutions
======
1. Use lots of functions with Local Variables, this allows RAM to be re-used between functions.
2. Use "short int" for Boolean variables.
3. Reduce complex expressions (If, Case statements and Loops etc)
4. Also it is wortwhile looking at the call tree. This shows the RAM used by each function, allowing you to target functions for RAM reduction.
_________________
Alan Murray
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