[ECOS] ARM SDT2.51 vs arm-elf-gcc
David Airlie
David.Airlie@parthus.com
Thu Apr 11 03:49:00 GMT 2002
arm-elf-gcc does produce crap ARM code, don't bother trying 3.0.4 I'll
save you the bother it produces code the same level of crapiness as 2.95.3
:-)
you might have a hope of getting the object linking using ADS the newer
ARM stuff and gcc objects.. debugging would of course be impossible,
Dave.
On Thu, 11 Apr 2002, dnt ly wrote:
>
> 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
>
>
>
--
David Airlie, Software Engineer, Parthus Technologies plc.,
Mary Rosse Centre, National Tech Park, Limerick, Ireland.
t: +353-61-508116 / f: +353-61-508101 / David.Airlie@parthus.com
--
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