Simplify Pointers
DSPs are very good at some kinds of pointer arithmetic...
But not very good at other kinds
- Vectorize matrix operations from forms of A[i][j] to B[k] or *B++
- Avoid hierarchical pointers
- Avoid pointer swapping
-
GPPs usually handle pointers better than DSPs
- But it generally pays to optimize pointers