Question on avr-size

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

After compilation, avr-size shows the size of memory used (using AT90S8515),
e.g.
text: 4470
data: 48

In AT90S8515, the 8kbytes program memory is organised as 4kx16 bytes.
I would like to confirm the avr-size means 4470x8 or 4470x16 bytes of memory are use up.

Thanks.
Joseph

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

The output is in bytes, regardless of the matter that
the AVR's flash is organized in 16-bit words. Thus,
you can always only have an even number of bytes.
(Though, avr-gcc can address the flash in bytes when
it comes to storing strings and other constants there,
since the LPM instruction takes a byte address.)

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

Thanks Joerg,
so that means at 4470 for AT90S8515, I am not out of program memory,
and only half way through.