View Single Post
  #5   Spotlight this post!  
Unread 03-01-2006, 11:03
kc8nod's Avatar
kc8nod kc8nod is offline
Registered User
AKA: Ted Hansen
FRC #1216 (Knights)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Oak Park Michigan
Posts: 43
kc8nod is on a distinguished road
Re: White Paper Discuss: Handy script to examine the size of your code

Quote:
Originally Posted by prograid
...the script is being run as a post-build command from within eclipse.
Sorry for the slow response, I've been offline last week.

I'm guessing that you are doing something clever with your linker script and that is confusing the codsize script. Are you even using the linker script? I can only imagine what hacks you have had to perpetrate to make mcc18 work under Eclipse. Anyway, from your mapfile:
Code:
                              Program Memory Usage 
                               Start         End      
                           ---------   ---------      
                            0x000800    0x000814      
                            0x000818    0x0063a0      
                            0x300000    0x30000d      
            23468 out of 33816 program addresses used, program memory utilization is 69%
My codesize script is improperly concluding that your program ends at address 0x000814 rather than 0x0063a0. My unfounded guess is that you have an extra CODEPAGE entry in your .lkr file.
At any rate, the bug is indeed in my script. I'll think about this a bit more and post a fix in a day or two.
Reply With Quote