![]() |
White Paper Discuss: Handy script to examine the size of your code
Thread created automatically to discuss a document in the White Papers.
Handy script to examine the size of your code by kc8nod |
Re: White Paper Discuss: Handy script to examine the size of your code
Hi, I'm having a few problems with this script.
When I tried using the script the first two lines were as follows. Code:
Unused Memory 28651 bytes 93.3%I have a feeling that my code is actually larger than the maximum possible size and somehow this is affecting the result. Thanks. |
Re: White Paper Discuss: Handy script to examine the size of your code
Quote:
|
Re: White Paper Discuss: Handy script to examine the size of your code
Thanks for replying.
By the way, I don't think this should make a difference but the script is being run as a post-build command from within eclipse. The mapfile is in the attachment in the FRCMapfile.zip archive because the forum does not allow text file attachments of greater than 100kb. Thanks. |
Re: White Paper Discuss: Handy script to examine the size of your code
Quote:
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 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. |
Re: White Paper Discuss: Handy script to examine the size of your code
1 Attachment(s)
BTW, here's the proper output from the .map file you posted.
|
Re: White Paper Discuss: Handy script to examine the size of your code
Quote:
This is the command I run in order to run your script: Code:
perl "..\codesize.pl" "FRCMapfile.map"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. |
| All times are GMT -5. The time now is 00:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi