EmbeddedRelated.com
Forums

Gnu tools for ARM Cortex development

Started by Tim Wescott May 4, 2010
Oliver Betz skrev:
> Chris H wrote: > > [...] > >> There is no need except for amusement. GCC is a LONG way behind the main >> commercial compilers. > > which Compiler(s) would you recommend for the Coldfire and CM3? > > Oliver
I have been told that the Keil is marginally better than the IAR. This was last summer, so things might have changed. At that time the gcc for CM3 really sucked. Would like to know if gcc has improved. -- Best Regards Ulf Samuelsson These are my own personal opinions, which may or may not be shared by my employer Atmel Nordic AB
Ulf Samuelsson wrote:

[...]

>>> There is no need except for amusement. GCC is a LONG way behind the main >>> commercial compilers. >> >> which Compiler(s) would you recommend for the Coldfire and CM3? >> >> Oliver >I have been told that the Keil is marginally better than the IAR.
for the CM3, I assume?
>This was last summer, so things might have changed. >At that time the gcc for CM3 really sucked. > >Would like to know if gcc has improved.
Can't tell for CM3, and not for Keil or IAR, but I currently test gcc (CodeSourcery) and CodeWarrior for Coldfire. Until now, I found no stupid piece of code. gcc even detected that in |static const unsigned int len[] = {16, 16, 32}; |... |foo = (foo + 1) % len[1]; Buflen[1] is constant and used the appropriate andi (and immediate) instruction, where CodeWarrior used the much slower remu (remainder). Besides this, I found no noticeable differences in code quality, but I hadn't yet the time to test in depth. I already gave up on libraries since I need them really lightweight, e.g. without locale, so I will make my own (don't need many or complicated functions). Oliver -- Oliver Betz, Munich despammed.com is broken, use Reply-To:
Oliver Betz skrev:
> Ulf Samuelsson wrote: > > [...] > >>>> There is no need except for amusement. GCC is a LONG way behind the main >>>> commercial compilers. >>> which Compiler(s) would you recommend for the Coldfire and CM3? >>> >>> Oliver >> I have been told that the Keil is marginally better than the IAR. > > for the CM3, I assume?
Yes, that was what I meant.
> >> This was last summer, so things might have changed. >> At that time the gcc for CM3 really sucked. >> >> Would like to know if gcc has improved. > > Can't tell for CM3, and not for Keil or IAR, but I currently test gcc > (CodeSourcery) and CodeWarrior for Coldfire. > > Until now, I found no stupid piece of code. gcc even detected that in > > |static const unsigned int len[] = {16, 16, 32}; > |... > |foo = (foo + 1) % len[1]; > > Buflen[1] is constant and used the appropriate andi (and immediate) > instruction, where CodeWarrior used the much slower remu (remainder). > > Besides this, I found no noticeable differences in code quality, but I > hadn't yet the time to test in depth. > > I already gave up on libraries since I need them really lightweight, > e.g. without locale, so I will make my own (don't need many or > complicated functions). > > Oliver
-- Best Regards Ulf Samuelsson These are my own personal opinions, which may or may not be shared by my employer Atmel Nordic AB