Is there any way the RealView compiler can take advantage of the multiply-and-accumulate instructions of the Cortex M3?
I wrote a simple MAC loop and the compiler didn't generate any SMLAL or UMLAL instructions, which was disappointing.
Thanks, Andrew Queisser HP
Andrew,
is it worth the effort? The ARM compiler is so good that you can hardly beat it. My suggestion is to write your application in HLL and put only time-critical functions (cpu intensive) to assembly module and optimize it. You might even discover that there is no need for the assembly at all.
The project overview, maintenance later, etc. is much better in HLL.
Franc
Hi Franc,
Reading through my messages in this thread I realize I wan't really clear. The vast majority of our code is in C and we only resort to assembly for small time critical chunks, just as you suggest.
I agree that assembly is hard to maintain although at this point ARM is so prevalent (the last three projects I was on used it) that learning ARM assembly seems to be a good investment.
Thanks, Andrew