[En-Nut-Discussion] AVR vs ARM pgm size
Ralph Mason
ralph.mason at telogis.com
Wed Jan 18 22:37:43 CET 2006
You should have a look here at the work done by Michale Fisher.
http://www.usbdip.de/en/ethernut2294/index.html
It shows that the arm code is actually *smaller* than the AVR code (with
Max optimization).
It does show that the required stack space grows somewhat.
Ralph
> 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