|
|
View previous topic :: View next topic |
Author |
Message |
ik1wvq
Joined: 21 Feb 2004 Posts: 20
|
code size growed from PCM 3.178 to PCM 3.224 |
Posted: Tue May 24, 2005 10:47 am |
|
|
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 |
Posted: Tue May 24, 2005 11:56 am |
|
|
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
|
|
Posted: Tue May 24, 2005 1:32 pm |
|
|
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
|
|
Posted: Wed May 25, 2005 4:00 am |
|
|
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 |
|
|
|
|
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
|