WinAVR 20070525 - Missing the % full at end of compilation

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

Guyzz

I Just installed WinAVR 20070525 , and did a recompile of a project.

I noticed i miss the nice %full output at the end of the compilation.

This is the last i get.

Size after:
g18-control.elf  :
section           size      addr
.text             1082         0
.bss                18   8388704
.stab              888         0
.stabstr           113         0
.debug_aranges      96         0
.debug_pubnames    301         0
.debug_info       1259         0
.debug_abbrev      647         0
.debug_line       1761         0
.debug_frame       256         0
.debug_str         502         0
.debug_loc         353         0
Total             7276

Has this script changed behaviour or name ??

I use my own makefile , so it could be the above reason.

Any hints ??

/Bingo

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

Hmm ...

I seem to ask silly questions today , and not even try my self.

Another "Self ansver" Sorry ....

Replace the old size stuff with this , in the makefile

# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf

sizebefore:
	@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \
	2>/dev/null; echo; fi

sizeafter:
	@if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); \
	2>/dev/null; echo; fi

Edit: If make complains , after insetting the above , make sure to replace the "spaces" in front of the @ , with a "tab"

/Bingo

Last Edited: Mon. Oct 8, 2007 - 10:11 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Bingo,

Glad we could help! ;)

Eric

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

@Eric

Is it possible to get the same function on linux ??

I mean the source for avr-size , that knows --mcu ?? , and their respective storage sizes ??

/Bingo

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

That functionality is in the form of a patch to binutils. So if you are comfortable using the "patch" program and building binutils, then go to the WinAVR project on SourceForge and see the "avr-size" patch in the CVS repository. That patch gets updated as new devices are added to the toolchain and when WinAVR is released.

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

Fine :-)

I'll dig it out from there

/Bingo

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

Just rebuild the linux toolchain with the avr-size patch :-)
Here is the output

Size after:
AVR Memory Usage
----------------
Device: atmega32

Program:    8648 bytes (26.4% Full)
(.text + .data + .bootloader)

Data:        818 bytes (39.9% Full)
(.data + .bss + .noinit)



-------- end --------

/Bingo

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

Made a new linux buildscript with the avr-size patch , in the sticky at the top

/Bingo