Easier way to get filesize info?
Rayman
Posts: 14,665
I'm finding it difficult to figure out the instructions here to determine the final filesize:
http://code.google.com/p/propgcc/wiki/PropGccMaps
Plus, I don't really want to install Perl...
Any chance you can come up with a simpler tool to figure this out?
Can't you tell anything by the size of the a.out file?
Somehow the loader figures out how many bytes to program using only a.out, right?
http://code.google.com/p/propgcc/wiki/PropGccMaps
Plus, I don't really want to install Perl...
Any chance you can come up with a simpler tool to figure this out?
Can't you tell anything by the size of the a.out file?
Somehow the loader figures out how many bytes to program using only a.out, right?
Comments
Call me lazy, but I don't really want to sort through all that just to figure out if my code is too big or not...
I like the way SimpleIDE gives you the size, but I want to use Visual Studio as my editor...
So, I need a simple way to determine the sizes...
It'd really be nice to get a report, the way that the Prop Tool does...
BTW: I see you posted earlier while I was typing... Yes, I would like to ask for a command line tool to report memory usage,
especially if it's not a lot of work for you.
I feel like I'm on pretty solid ground with my Visual Studio IDE approach, except for this one thing...
Can you do that?
Hmm - it appears you can http://msdn.microsoft.com/en-us/library/dd885242.aspx
Very interesting idea, Rayman.
So - could you add a menu item "compile" and it shells a command line program?
http://www.rayslogic.com/PropGCC/VS_PropGCC.htm
Here's the output:
I guess you're saying that the "dec" number is the bytes of HUB RAM required for LMM and CMM codes.
Still, this is a bit cryptic...
I think it would be nice if we had a tool that gave more simplified details and also worked for XMM modes...
Anyway, I'll write another utility. I had started to do that and was trying to decide what name to use. That's when I noticed there was already a program called propeller-elf-size.
Program: 20,000 bytes, Variable: 2,000 bytes, Stack/Free: (do some math here)
For XMM and the like, I really don't know because I haven't done a lot of that yet (but am working up to it)......
BTW: When I downloaded the new version, I noticed this comment:
"It also adds support for -e to write a bootable image to the P2 boot SPI flash"
For what command is the -e option for?
I was looking at propeller-elf-size instead of propeller-elf-image-size ...
After reading your post again, are you saying there is no Windows executable to download, just GCC source code?
Any chance you could provide a Windows executable?
propeller-elf-size is a standard utility from binutils.
I.e., should I be using that instead?