Optimizing DSP-based system design for real-time applications