build your own cross-compiler !!!

This is the end-of-word pattern, which makes sure for instance ENDING is not matched. Does it help if you use the sed -r option for extended regular expressions? Anyway, this sed vomit is just a quick hack to make the source compile without changing it. Once we have a real official open-source repository we should make the assembly code easier to maintain for both IAR and gcc, for instance using #ifdefs or macros.