[En-Nut-Discussion] AVR vs ARM pgm size

William Basser wbasser at cyberinteg.com
Wed Jan 18 23:24:42 CET 2006


Are you compiling in thumb mode or arm mode?

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of Ernst Stippl
Sent: Wednesday, January 18, 2006 3:43 PM
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] AVR vs ARM pgm size

Hi All!

The question of program size on the ARM chip was raised in some msg, this is
what discovered when trying to compile the sample apps (out of the box, no
changes): 
 
I used WinARM-20050209-2.zip and WinAVR-20040720-install.exe, and Ethernut
3.9.9
 
PGM      AVR size   ARM size
        .hex file  .hex file
Events     21k        41k
TFTP      144k        err
HTTPD     221k       397k
Inetq     106k       227k
Isp2       err        err
Logtime   133k       268k
Nutpiper  149k        err
Playmp3    err        err
Portdio   105k       226k
Pppc      125k        err
Rs232d    109k       238k
Simple     13k        25k
Tcps      108k       230k
Threads    32k        65k
Timers     29k        54k
Uart       38k        75k *)

Notes:
*) after changing _write_P to _write
"err" means it did not compile. 
I did not run all these to verify results

And yes, I do know that the .hex file is larger than the "real" binary.
(about 2.2 time the size as far as I know) but I was just interested in the
ratio between the AVR and the ARM. From this list, its sufficient for me to
know its roughly 1:2

Regards
Ernst

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list