[ECOS] ARM SDT2.51 vs arm-elf-gcc
dnt ly
lydnt@hotmail.com
Thu Apr 11 03:20:00 GMT 2002
I had a code which decode data, I compiled it using both
arm-elf-gcc(2.95/3.0) and ARM SDT2.51, and run it in test board, text
generated by ARM SDT2.51 is very fast than genereated by
arm-elf-gcc(2.95)(17.3 ms VS 70.2ms). I try the following simple code, and
get different asm code:
int i = 1000000;
while(i--);
ARM SDT2.51:
0xc12e38c: mov r0, #0x240
0xc12e390: add r0, r0, #0xf4000
0xc12e394: subs r0, r0, #0x1
0xc12e398: bcs 0xc12e394
arm-elf-gcc(2.95/3.0):
0xc145c0c: ldr r2, 0xc145c48
0xc145c10: sub r2, r2, 0x1
0xc145c14: cmn r2, 0x1
0xc145c18: bne c145c10
Is it that arm-elf-gcc(2.95) have not optimized full with ARM
instructions? anyone can help me or where can I get/buy arm-elf-gcc that
optimized full with ARM instructions?
Or are there any way to compile eCos using arm-elf-gcc, compile my
application using ARM SDT, link them together?
_________________________________________________________________
MSN ¬Ãï´£¨Ã±z³Ãò³æªº¤è¦¡¤Ã¨Ã¨Ã¦C¦L±zªº¬Ã¤ù¡A½Ã²¾¦Ã
http://photos.msn.com/support/worldwide.aspx¡C
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list