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 CCS Technical Support

Microchip IDE Compile Result Question

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



Joined: 05 May 2007
Posts: 6
Location: Springfield, Oregon, USA

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

Microchip IDE Compile Result Question
PostPosted: Sat May 05, 2007 6:11 pm     Reply with quote

Greetings all!

I have written a test program to try to understand this question better. I just cant seem to figure out what the compiler is telling me.

Code:
#include <16F74.h>

#device *=16

#fuses HS,NOWDT,NOPROTECT
#use delay(clock=20000000)
      
int8   Test1[96];
int8   Test2[90];   

void main()
{
   while(true);         
}


With the result...

Memory usage: ROM=0% RAM=99% - 99%

I know I am using all of the available memory. Why does the compiler have a '-99%'? As a result my 'Memory Usage Gauge' shows only 1 byte used.

My thanks in advance for your assistance!

Cheers!
JMc
_________________
"Trouble? I call it sport!" - Hyde - The League of Extraordinary Gentlemen

PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat May 05, 2007 10:14 pm     Reply with quote

I never look at the stats in the Output Window. Look at the .LST file
instead. The .LST file has the stats right at the top of the file and
they're in a better format. Example:
Code:

Filename: pcm_test.lst

               ROM used: 14 words (0%)
                         Largest free fragment is 2048
               RAM used: 191 (99%) at main() level
                         191 (99%) worst case
               Stack:    0 locations
chargedneuron



Joined: 05 May 2007
Posts: 6
Location: Springfield, Oregon, USA

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

PostPosted: Wed May 09, 2007 10:02 pm     Reply with quote

Thanks for the suggestion. That seems to work. too bad the gauge doesn't... I am sure that it has been reported as a bug.


Many Thanks!
_________________
"Trouble? I call it sport!" - Hyde - The League of Extraordinary Gentlemen

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