View previous topic :: View next topic |
Author |
Message |
direnc
Joined: 28 Jul 2004 Posts: 5
|
@PRINTF functions allocated more than once in ROM |
Posted: Fri Jan 20, 2006 2:13 pm |
|
|
Hi,
I am running out of rom with my 18F4620 application. When I check the .sta file I see that @PRINTF functions are allocated more than once:
Code: |
Page ROM % RAM Functions:
---- --- --- --- ----------
107 19:0 122 0 2 @PRINTF_U_1288
113 19:0 234 0 12 @PRINTF_L32D_1054
117 19:0 232 0 12 @PRINTF_L32D_1288
125 19:0 118 0 2 @PRINTF_U_1054
173 19:0 122 0 2 @PRINTF_U_468
183 19:0 204 0 9 @PRINTF_LU_1054
206 19:0 202 0 9 @PRINTF_LU_1288
241 19:0 234 0 12 @PRINTF_L32D_468
|
Is this normal, and is there a way to fix this ?
Best regads,
Direnc |
|
|
treitmey
Joined: 23 Jan 2004 Posts: 1094 Location: Appleton,WI USA
|
|
Posted: Fri Jan 20, 2006 3:26 pm |
|
|
would #seperate help? |
|
|
direnc
Joined: 28 Jul 2004 Posts: 5
|
|
Posted: Fri Jan 20, 2006 3:59 pm |
|
|
Functions with printf / sprintf calls are already #separate. I tried making all of the functions #separate, but it does not make a difference. |
|
|
Eugeneo
Joined: 30 Aug 2005 Posts: 155 Location: Calgary, AB
|
|
Posted: Fri Jan 20, 2006 8:20 pm |
|
|
Have you tried using a separate semi-universal printf function. This way the compiler won't create a new function for each printf |
|
|
direnc
Joined: 28 Jul 2004 Posts: 5
|
|
Posted: Sat Jan 21, 2006 7:04 am |
|
|
Quote: | Have you tried using a separate semi-universal printf function. |
That would possibly work, but I have 50+ printf/sprintf calls. Splitting all strings and replacing each format string with a separate call would make this harder to maintain. |
|
|
|