This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
ARM SDT2.51 vs arm-elf-gcc
- From: "dnt ly" <lydnt at hotmail dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 11 Apr 2002 18:20:16 +0800
- Subject: [ECOS] ARM SDT2.51 vs arm-elf-gcc
- Bcc:
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 相簿提供您最簡單的方式分享並列印您的相片,請移至
http://photos.msn.com/support/worldwide.aspx。
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss