[En-Nut-Discussion] Codesize with winavr 4.x and NutOS 4.6.4

Ole Reinhardt ole.reinhardt at embedded-it.de
Fri Jan 9 09:54:14 CET 2009


Hi!

> The easiest way to check occupied Flash size (code, constants and 
> initialized data section) - is to convert elf file to binary form using 
> avr-objcopy. 

Or even simpler use avr-site to do the job an call

avr-size $(PROJ).elf

and you will get an output similar to this one:

   text	   data	    bss	    dec	    hex	filename
  77184	      0	   2456	  79640	  13718	my_project.elf

Where the overall file site is the value in the dec collumn.

Regards,

Ole

-- 
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt at embedded-it.de |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|




More information about the En-Nut-Discussion mailing list