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

How can determinate the rom page of a function?

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







How can determinate the rom page of a function?
PostPosted: Tue Dec 09, 2008 1:42 pm     Reply with quote

Hello,

I'm using pic16f876, ccs v3.212, mplab 7.2 and proteus 7.1 sp2.

I have the problem that when I exceed the 25% of the rom (as mplab says...) my program starts to work wrong in proteus. It doesn't translate to assembly code from the main function and everything became wrong.

I think that may it could be that I have exceeded the 1st page of the rom... But I don't know how to asign the other functions to the other pages...
or maybe I'm completely wrong and there is any other problem...

thank you very much


Imanol.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Dec 09, 2008 3:06 pm     Reply with quote

Set your Project Build Options to make the Call Tree file (.TRE extension).
Use the "Terminal" font in your editor. Then you can see the line-font
characters used in the file.

Here is a typical line in the .TRE file:
Quote:
ds1307_write_byte 0/119 Ram=2

This means the function is in Rom Page 0,
and it uses 119 ROM words (this is for a 16F877).
It also uses 2 bytes of RAM.
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