This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

why do we use both assembly language coding and c programming together in some dsp program?



why do we use both assembly language coding and c programming together  in some dsp program?

  • Anjana,

    The rationale is generally this:
    C code is generally easier to read but assembly can be faster and more efficient if written well.

    Therefore, we prefer to use C whenever possible.  However, in some certain circumstances (situations which are repeated a lot, time-critical code, etc) it may be necessary to put in some extra effort to save a few cycles.  Examples of this may be multi-phase digital power ISRs running at high speed and maybe CRC algorithms.


    Thank you,
    Brett