AW: [En-Nut-Discussion] AVR vs ARM pgm size
Ernst Stippl
ernst at stippl.org
Wed Jan 18 23:49:57 CET 2006
Hi!
I did use the makefile as supplied on egnite's CD which comes with Ethenrut
3.0.
A copy of the DOS windows:
J:\ethernut-arm-3.9.9\nut\_MyApp\threads>make
arm-elf-gcc -c -mcpu=arm7tdmi -O0 -mthumb-interwork -fomit-frame-pointer
-Wall -
Wstrict-prototypes -fverbose-asm -Wa,-ahlms=threads.lst -DETHERNUT3
-IJ:/ethernu
t-arm-3.9.9/nutbld/include -IJ:/ethernut-arm-3.9.9/nut/include threads.c
-o th
reads.o
arm-elf-gcc threads.o -mcpu=arm7tdmi -nostartfiles
-TJ:/ethernut-arm-3.9.9/nut/a
rch/arm/ldscripts/at91_ram.ld -Wl,-Map=threads.map,--cref,--no-warn-mismatch
-LJ
:/ethernut-arm-3.9.9/nutbld/lib J:/ethernut-arm-3.9.9/nutbld/lib/nutinit.o
-lnut
os -lnutarch -lnutdev -lnutos -lnutcrt -o threads.elf
arm-elf-objcopy -O ihex threads.elf threads.hex
rm threads.elf
J:\ethernut-arm-3.9.9\nut\_MyApp\threads>
Regards
Ernst
-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von William Basser
Gesendet: Mittwoch, 18. Jänner 2006 23:25
An: 'Ethernut User Chat (English)'
Betreff: RE: [En-Nut-Discussion] AVR vs ARM pgm size
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
_______________________________________________
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