View Single Post
  #7   Spotlight this post!  
Unread 06-01-2006, 19:50
prograid's Avatar
prograid prograid is offline
Registered User
AKA: Ben Cherian
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Oct 2004
Rookie Year: 2004
Location: San Jose
Posts: 80
prograid will become famous soon enough
Re: White Paper Discuss: Handy script to examine the size of your code

Quote:
Originally Posted by kc8nod
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.
Does your script use the linker script (I'm assuming you mean the 18f8520user.lkr file.) in calculating the usage of code? B/c in eclispe the linker script is a directory level up from the mapfile, but in the same level as your perl script.
This is the command I run in order to run your script:
Code:
perl "..\codesize.pl" "FRCMapfile.map"
Thanks, for your help.

EDIT:

I tried running your script from within the plain old windows command line after copying the mapfile into the same directory as your script and the .lkr file (and run this command: perl codesize.pl FRCMapfile.map), but still get the same output. I'm using ActivePerl 5.87 Build 815 on Windows XP just for your info.

Last edited by prograid : 06-01-2006 at 19:56. Reason: More Information
Reply With Quote