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

@PRINTF functions allocated more than once in ROM

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



Joined: 28 Jul 2004
Posts: 5

View user's profile Send private message Visit poster's website

@PRINTF functions allocated more than once in ROM
PostPosted: Fri Jan 20, 2006 2:13 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Fri Jan 20, 2006 3:26 pm     Reply with quote

would #seperate help?
direnc



Joined: 28 Jul 2004
Posts: 5

View user's profile Send private message Visit poster's website

PostPosted: Fri Jan 20, 2006 3:59 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jan 20, 2006 8:20 pm     Reply with quote

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

View user's profile Send private message Visit poster's website

PostPosted: Sat Jan 21, 2006 7:04 am     Reply with quote

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