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

code size growed from PCM 3.178 to PCM 3.224

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



Joined: 21 Feb 2004
Posts: 20

View user's profile Send private message

code size growed from PCM 3.178 to PCM 3.224
PostPosted: Tue May 24, 2005 10:47 am     Reply with quote

HI all,

i have a project developped in 2002 prefectly working with PCM 3.178 ..
(80 % ROM and near 88% RAM) on 16F876

now, if i try to recompile the project with 3.224 the result is: OUT OF ROM !!!

It is a know problem ??
anyone can suggest some workaround ??

Thanks

Regards

Mauro
valemike
Guest







Re: code size growed from PCM 3.178 to PCM 3.224
PostPosted: Tue May 24, 2005 11:56 am     Reply with quote

ik1wvq wrote:
HI all,

i have a project developped in 2002 prefectly working with PCM 3.178 ..
(80 % ROM and near 88% RAM) on 16F876

now, if i try to recompile the project with 3.224 the result is: OUT OF ROM !!!

It is a know problem ??
anyone can suggest some workaround ??

Thanks

Regards

Mauro


My easiest workaround is to upgrade to the next 18F chip, e.g. 18F252 (or 242). There's nothing wrong. The compiler's changed since 3.178.

In the past, i'd start with a 18f442, then have to upgrade to an 18f452. That's the beauty about Microchip and its drop-in replacements.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue May 24, 2005 1:32 pm     Reply with quote

I would comment out some of the code inside some functions, so that
I could at least get it to compile. Then I would study the .LST file to
see what functions grew larger, so as to cause a problem.

I might also try to break up some large functions into smaller ones,
so the compiler can partition the ROM and locate the functions more
easily.

I suspect that you have some large functions, and probably main()
is very large.
Ttelmah
Guest







PostPosted: Wed May 25, 2005 4:00 am     Reply with quote

Might be worth just trying turning up the optimisation level. There have been several changes to the optimisation through the CCS cdevelopment at aout this time (mostly for the 18 chips), and it may simply be that one of these is resulting in the code growing.
You will know 'see', why PCM programmer, and several other posters suggest that you keep 'known working' versions, with the source code. For example, I have projects, where in each case the project has a comment as the first line in the main file, saying which compiler version was used, and when I 'archive' the project, the compiler is stored wth it.

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