AVR GCC - AS7 - Basic Compiler Question

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


 

Hi -

I could use some guidance  understanding the output report generated following an AS7 (AVR-GCC) build regarding chip resources used.

 

If .text represents flash, does that quantity refer to both application code + strings, etc?  i.e. everything stored in flash

If Program Memory Usage = 3508 is this only application memory and .text - program memory = 291 (strings, etc?)

 

I also don't understand the discrepancy in 'Data Memory Usage' = 29 bytes, however .data+.bss = 39 bytes?

 

Any assistance in understanding this would be appreciated.

Thanks

Jim

 

Below, I've pasted an image of the output report:

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

.text is only the code. .data are the non-0 initializers so total flash usage is text+data. Above that is 3799+14. Your preallocated RAM usage is data+bss so 14+25

 

The following numbers from Atmel's tool just look like so much bollocks.

Last Edited: Sat. Sep 21, 2019 - 06:49 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

.text is only the code. .data are the non-0 initializers so total flash usage is text+data. Above that is 3799+14. Your preallocated RAM usage is data+bss so 14+25

 

The following numbers from Atmel's tool just look like so much bollocks.

 

 

Thanks -

I understand and that makes perfect sense.  However, the PROGRAM MEMORY USAGE and DATA MEMORY USAGE are meaningless?  Confusing.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yeah total bollocks as far as I can see.

 

If you want the real numbers learn to read the .map file.

Last Edited: Sat. Sep 21, 2019 - 07:06 PM