AT91SAM7S64 code/data size help

I'm a novice at embedded development, and am hitting data block size limitations. I'm now maximally optimized for code size in my compiler setting.

I'm using the IAR EWARM tool.

How do I determine my memory usage so I can make changes to my code and directly see the results in terms of memory footprint?

I need to know both how much room my code is occupying, and the similarly, the data.

Any suggestions on reading to educate myself quickly would be much appreciated.

Just knowing how to determine the memory usage quickly will allow me to use trial and error more efficiently.

Meanwhile, I'm digging through the IAR documentation (always my last resort).

I am not using Thumb instructions. Should I take the time learn about this ASAP?

Please forgive my ignorance.

Thanks so much! Vic

Reply to
Loading thread data ...

Just a quick note that I found this article immediately pertinent and helpful:

formatting link
?_= requestid=3D144912

Reply to

Your linker and/or your locater (if the locater is separate from your linker) will generate a map file telling you where everything was put and how big it is. Every tool has it's own format for a map file, but all the ones I've used have been useful for just this task.

Unless you're writing in assembly, I would expect that using thumb instructions would be as easy as setting a switch on your compiler -- have you tried?

Tim Wescott
Control systems and communications consulting
 Click to see the full signature
Reply to
Tim Wescott

ed text -

Hi Tim, No I haven't tried, but I've been reading up on interworking etc. Yes, it does appear to be that convenient. I'm studying the map file now, learning how to understand it. Thanks, and kind regards, Vic

Reply to

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.