Prev: Simulation of ARM7TDMI-S
Next: Which controller to use?
From: Ulf Samuelsson on 2 Jun 2010 19:18 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 |