View previous topic :: View next topic |
Author |
Message |
chargedneuron
Joined: 05 May 2007 Posts: 6 Location: Springfield, Oregon, USA
|
Microchip IDE Compile Result Question |
Posted: Sat May 05, 2007 6:11 pm |
|
|
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
|
|
Posted: Sat May 05, 2007 10:14 pm |
|
|
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
|
|
Posted: Wed May 09, 2007 10:02 pm |
|
|
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
 |
|
 |
|