Help the Compiler
- Eliminate unnecessary function call overhead of small, often-called functions
- Rewrite expressions to help the compiler
for(i=0; i<N; i++) sum += A[i] * B[i];
- But the compiler may generate faster code if the code is
for(i=0; i<N; i++) sum += *ptA++ * *ptB++;