Isn hand-optimized code more efficient?
There is no technical reason why compiled code on the eTPU cannot be as tight as hand-optimized code. The ISO C standard for embedded systems overcomes previous C language limitations related to embedded. There are three things that the eTPU_C compiler can do very well that hand optimization finds difficult. • Computers are very good at accounting. • Programmers tricks, once added to the knowledge base in the eTPU_C compiler, remains available for everyone’s applications forever. The compiler is capable of combining these tricks into combinations that we have not anticipated. • Most of the detail of the instruction set and eTPU architecture is embedded in the compiler. Application developers can rely on this and focus on application details. In the eTPU_C compiler, we have placed in the code generator rules that allow for sub-command re-ordering. What we found was there are only a few cases where this can happen without un-wanted side effects. We can implement complex rules only as we