Compile with different optimzation levels for different parts of a code